Replies: 1 comment 1 reply
-
|
Seems that you are using the Laravel Framework in that test. Therefore, you need to boot the framework in your unit tests by adding /*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
| need to change it using the "uses()" function to bind a different classes or traits.
|
*/
uses(Tests\TestCase::class)->in('Feature', 'Unit'); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
i want to write unit test for my repository class functions like update, create, delete etc..
I got this error
how can i write it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions