Skip to content

Commit 5d9a1b4

Browse files
test
1 parent 63cb06f commit 5d9a1b4

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/Tests/CreateContractAndResponseTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
class 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

src/Tests/TestCase.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
namespace Eren\LaravelCommands\Tests;
44

55
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
6-
use Eren\LaravelCommands\Providers\LCServiceProvider;
6+
use Illuminate\Foundation\Testing\RefreshDatabase;
77

88
abstract 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+
}

0 commit comments

Comments
 (0)