Update tests
This commit is contained in:
@@ -10,26 +10,14 @@ use App\Models\Playlist;
|
||||
use App\Models\PlaylistEpisode;
|
||||
use App\Models\Studios;
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabaseState;
|
||||
use Livewire\Livewire;
|
||||
use Tests\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class PlaylistOverviewTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* The repo's post-launch data-fix migrations (e.g. 2026_01_08_213625)
|
||||
* assume a populated production schema and fail on a fresh database, so
|
||||
* the "testing" database is provisioned from a production schema dump
|
||||
* instead of running migrate:fresh.
|
||||
*/
|
||||
protected function migrateDatabases(): void
|
||||
{
|
||||
RefreshDatabaseState::$migrated = true;
|
||||
}
|
||||
|
||||
private function makePlaylist(int $episodeCount = 1): array
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
|
||||
Reference in New Issue
Block a user