-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZEE-3085: Added specification ContentTypeSpecification #47
EZEE-3085: Added specification ContentTypeSpecification #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide unit tests for ContentTypeSpecification
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate on the purpose of this and naming?
I don't see this doing anything right now (not configured?).
I see that naming was taken from SpecificationInterface
defined by @mikadamczyk in AdminUI in 2018.
@mikadamczyk if you remember, could you explain the choice of naming? Is it some kind of a design pattern or does it reflect existing solution? I don't remember being part of this discussion.
Without the broader context I don't feel like this belongs to the Repository domain
This becomes from Behavioral Design Pattern - Specification: The |
Because it's used in the following way there $contentTypeSpecification = new ContentTypeSpecification($expectedType); the BTW. Specification is a Value (if I were to suggest the placement) ;) TBH it looks like an overkill, but as long as it follows A(S)PI rules, I'm fine ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for SPI,
Remarks for tests:
eZ/Publish/SPI/Specification/Tests/Content/ContentContainerSpecificationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/SPI/Specification/Tests/Content/ContentContainerSpecificationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/SPI/Specification/Tests/Content/ContentTypeSpecificationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/SPI/Specification/Tests/Content/ContentContainerSpecificationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/SPI/Specification/Tests/Content/ContentTypeSpecificationTest.php
Outdated
Show resolved
Hide resolved
eZ/Publish/SPI/Specification/Tests/Content/ContentContainerSpecificationTest.php
Outdated
Show resolved
Hide resolved
Merged up to master |
v3.0.1
- please update accordinglyAdded specification ContentTypeSpecification
Checklist:
$ composer fix-cs
).