Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Seed Admin User in test database
  • Loading branch information
sanjacornelius committed Feb 14, 2024
commit 3284ae64e646eb59166f9c49c946155513465756
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
Artisan::call('migrate:fresh', []);
Artisan::call('db:seed', ['--class' => 'AnonymousUserSeeder']);

// Seed the super administrator user data
Artisan::call('db:seed', ['--class' => 'UserSeeder']);

\Illuminate\Foundation\Testing\RefreshDatabaseState::$migrated = true;

ScriptExecutor::firstOrCreate(
Expand Down