-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[WIP] Adding a testing/database cookbook #2407
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
Conversation
} | ||
} | ||
|
||
As the ``ObjectManager`` gets injected into the class through the constructor, it's |
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.
Use some api link here
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.
@wouterj API links don't work for Doctrine interfaces
->method('getBonus') | ||
->will($this->returnValue(1100)); | ||
|
||
// Now, mock tthe repository so it returns the mock of the employee |
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.
typo: the
…fferent code examples
[WIP] Adding a testing/database cookbook
This PR adds a new cookbook for testing with a database involved.
This PR is not ready for merge yet