File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 77
88class CreateContractAndResponseTest extends TestCase
99{
10+ protected function setUp (): void
11+ {
12+ parent ::setUp ();
13+ }
1014 public function test_command_creates_contract_and_response ()
1115 {
1216 // Run the command
Original file line number Diff line number Diff line change 33namespace Eren \LaravelCommands \Tests ;
44
55use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
6- use Eren \ LaravelCommands \ Providers \ LCServiceProvider ;
6+ use Illuminate \ Foundation \ Testing \ RefreshDatabase ;
77
88abstract class TestCase extends BaseTestCase
99{
10+ // use RefreshDatabase; // This will ensure fresh database for each test
1011
11- protected function getPackageProviders ( $ app )
12+ protected function setUp (): void
1213 {
13- return [
14- LCServiceProvider::class,
15- ];
14+ parent ::setUp ();
1615 }
17- }
16+ public function createApplication ()
17+ {
18+ return app ();
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments