Skip to content

Commit 5bc500e

Browse files
committedOct 28, 2020
fix tests
1 parent 382181b commit 5bc500e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎tests/DeleteUserWithTeamsTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use App\Models\Team;
99
use Illuminate\Support\Facades\DB;
1010
use Illuminate\Support\Facades\Gate;
11+
use Illuminate\Support\Facades\Schema;
1112
use Illuminate\Support\Str;
1213
use Laravel\Jetstream\Jetstream;
1314
use Laravel\Jetstream\Tests\Fixtures\TeamPolicy;
@@ -66,5 +67,11 @@ protected function createTeam()
6667
protected function migrate()
6768
{
6869
$this->artisan('migrate', ['--database' => 'testbench'])->run();
70+
71+
Schema::create('personal_access_tokens', function ($table) {
72+
$table->id();
73+
$table->foreignId('tokenable_id');
74+
$table->string('tokenable_type');
75+
});
6976
}
7077
}

0 commit comments

Comments
 (0)