-
Notifications
You must be signed in to change notification settings - Fork 3
Test to illustrate thrown exception (new domain entity) #13
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
base: 0.x
Are you sure you want to change the base?
Conversation
|
I added a fix |
|
Any news? Thanks. |
tests/ValueObjectTest.php
Outdated
|
|
||
|
|
||
| // Test new entity | ||
| $newFakeEntity = new Fake(new Email('fake@example.com'), |
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.
Your changes are related to the EntityHandler but this is the test class for a value object. Is this correct?
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.
Yes because it's on the persist of a ValueObject.
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.
Two suggestions for the test:
- Create a separate test method and use a name that describes the current testing process.
- At the moment the test did not perform any assertions, that should be changed.
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.
Done ;)
|
Any news? Project abandoned? |
Issue explain here:
#10