Skip to content

Commit 167002f

Browse files
committed
Use cross-version artisan test calls
1 parent ecb4a2e commit 167002f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function setUp(): void
3737
{
3838
parent::setUp();
3939

40-
$this->artisan('migrate:fresh', ['--database' => 'testbench'])->run();
40+
$this->artisan('migrate:fresh', ['--database' => 'testbench']);
4141
$this->createProductsTable();
4242
$this->addProducts();
4343
}

tests/Unit/MigrationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MigrationsTest extends TestCase
1212
*/
1313
public function testMigrations()
1414
{
15-
$this->artisan('migrate:refresh', ['--database' => 'testbench'])->run();
15+
$this->artisan('migrate:refresh', ['--database' => 'testbench']);
1616

1717
$this->assertTrue(Schema::hasTable('baskets'));
1818
$this->assertTrue(Schema::hasTable('basket_items'));

0 commit comments

Comments
 (0)