Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading all fixtures if no args are passed to loadFixtures
- Loading branch information
1 parent
e158802
commit 214fc0e
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
214fc0e
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.
So this will mean we dont have to specify each fixture in each test case? We can load them all at once?
214fc0e
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.
You still need to specify all of the fixtures (usually create a base test case that extends Cake's to put them in). This change allows you to load all fixtures when autoFixtures is false, e.g., in a single test method. You can hit me up in slack if you have questions.
214fc0e
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.
Yeah no worries, this is what I am currently doing, was just hoping to save a few lines of code and lots of class extensions :)