Lose access to $this->get() when change the Feature defaults folder #803
-
Hi guys, When i run this sample test inside the default Feature folder, it runs ok.
But i've changed my phpunit.xml to point to my controllers folder.
When i make this change, and move my tests to controllers folder i loose access to $this->get() function. Already tried to change the Pest.php file to: And also tried to put the uses() on top of my test file. Things like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
use uses(Tests\TestCase::class)->in('../app/Http/Controllers'); |
Beta Was this translation helpful? Give feedback.
-
I think you using |
Beta Was this translation helpful? Give feedback.
-
Yeah, i think that too, but i'm really using it once. |
Beta Was this translation helpful? Give feedback.
Ow this is because of your
phpunit.xml
, you using the samedirectory
for differenttestsuites
! Remove one of them since they are the same.