1 parent ecb4a2e commit 167002fCopy full SHA for 167002f
2 files changed
tests/TestCase.php
@@ -37,7 +37,7 @@ protected function setUp(): void
37
{
38
parent::setUp();
39
40
- $this->artisan('migrate:fresh', ['--database' => 'testbench'])->run();
+ $this->artisan('migrate:fresh', ['--database' => 'testbench']);
41
$this->createProductsTable();
42
$this->addProducts();
43
}
tests/Unit/MigrationsTest.php
@@ -12,7 +12,7 @@ class MigrationsTest extends TestCase
12
*/
13
public function testMigrations()
14
15
- $this->artisan('migrate:refresh', ['--database' => 'testbench'])->run();
+ $this->artisan('migrate:refresh', ['--database' => 'testbench']);
16
17
$this->assertTrue(Schema::hasTable('baskets'));
18
$this->assertTrue(Schema::hasTable('basket_items'));
0 commit comments