I tried creating a unit test for the relationships between my User
and Shop
models, however when I run vendor\\\\bin\\\\phpunit
this e
One more reason
check if the test class is extending use Tests\TestCase; rather then use PHPUnit\Framework\TestCase;
Laravel ships with the later, but Tests\TestCase class take care of setting up the application, otherwise models wont be able to communicate with the database if they are extending PHPunit\Framework\TestCase.