Skip to content

Commit

Permalink
[FIX] fix missing modification of sqlite to mysql driver
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanBl committed Dec 11, 2023
1 parent 61a5421 commit c11516d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:',
Expand All @@ -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');
Expand Down

0 comments on commit c11516d

Please sign in to comment.