From c11516d5c84bd729d96567369de0851a7a1bd81f Mon Sep 17 00:00:00 2001 From: AbdelrahmanBl Date: Mon, 11 Dec 2023 17:53:00 +0200 Subject: [PATCH] [FIX] fix missing modification of sqlite to mysql driver --- tests/TestCase.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 203f6d1..3c92594 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,7 +3,6 @@ namespace Spatie\EloquentSortable\Test; use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Facades\Schema; use Orchestra\Testbench\TestCase as Orchestra; abstract class TestCase extends Orchestra @@ -32,7 +31,7 @@ protected function getPackageProviders($app) */ protected function getEnvironmentSetUp($app) { - $app['config']->set('database.default', 'mysql'); + $app['config']->set('database.default', 'sqlite'); $app['config']->set('database.connections.sqlite', [ 'driver' => 'sqlite', 'database' => ':memory:', @@ -42,8 +41,6 @@ protected function getEnvironmentSetUp($app) protected function setUpDatabase() { - Schema::dropIfExists('dummies'); - $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function (Blueprint $table) { $table->increments('id'); $table->string('name');