Skip to content

Commit e1750f2

Browse files
Fix for Laravel 7.x
1 parent f7dca56 commit e1750f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Migrations/MigrationTest.php

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

55
namespace Tests\Migrations;
66

7+
use Doctrine\DBAL\Driver\PDOSqlite\Driver;
78
use DragonCode\LaravelActions\Constants\Names;
89
use Illuminate\Support\Facades\DB;
910
use Illuminate\Support\Facades\Schema;
@@ -13,6 +14,12 @@ class MigrationTest extends TestCase
1314
{
1415
public function testRunMigrationAfterInstall(): void
1516
{
17+
if (! class_exists(Driver::class)) {
18+
$this->assertTrue(true);
19+
20+
return;
21+
}
22+
1623
DB::table('migrations')->truncate();
1724

1825
Schema::connection($this->database)->dropIfExists($this->table);

0 commit comments

Comments
 (0)