-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fix fixture path #9
Conversation
@@ -39,6 +39,11 @@ class FixtureTaskTest extends TestCase { | |||
*/ | |||
public function setUp() { | |||
parent::setUp(); | |||
|
|||
if ( ! defined('TESTS')) { |
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.
CS: no space around !
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.
Sorry! Fixed it
@@ -43,10 +43,10 @@ class FixtureTask extends BakeTask { | |||
* @return string | |||
*/ | |||
public function getPath() { | |||
$dir = 'tests/Fixture/'; | |||
$path = APP . $dir; |
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.
What is wrong with these paths? Nevermind, I read what APP is.
Had to read that a few times to see the problem. Thanks! |
Fixtures also got the 'src' prefix (e.g. **src/**tests/Fixture/ArticlesFixture.php), but this prefix should not be there