diff --git a/tests/TestSupport/TestCase.php b/tests/TestSupport/TestCase.php index c53ebb2..8e1744c 100644 --- a/tests/TestSupport/TestCase.php +++ b/tests/TestSupport/TestCase.php @@ -3,6 +3,8 @@ namespace Spatie\SqlCommenter\Tests\TestSupport; use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; use Orchestra\Testbench\TestCase as Orchestra; use Spatie\SqlCommenter\SqlCommenterServiceProvider; @@ -28,8 +30,16 @@ public function getEnvironmentSetUp($app) { config()->set('database.default', 'testing'); - $migration = include __DIR__.'/../../vendor/orchestra/testbench-core/laravel/migrations/2014_10_12_000000_testbench_create_users_table.php'; - $migration->up(); + Schema::create('users', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + $table->softDeletes(); + }); } public function addCommenterToConfig(string $commenterClass, array $options = []): self