Skip to content

Commit

Permalink
Update base testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Mar 14, 2024
1 parent f4e4d0d commit ec0616e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/TestSupport/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit ec0616e

Please sign in to comment.