Laravel 5 Unit Test - Call to a member function connection() on null

前端 未结 7 1263
灰色年华
灰色年华 2020-12-31 06:53

I tried creating a unit test for the relationships between my User and Shop models, however when I run vendor\\\\bin\\\\phpunit this e

相关标签:
7条回答
  • 2020-12-31 07:41

    a solution in file should instead of

    use PHPunit\Framework\TestCase

    Put this

    use Tests\TestCase

    0 讨论(0)
提交回复
热议问题