Update tests

This commit is contained in:
2026-08-04 21:00:01 +02:00
parent 9dcf13a62e
commit 71d679cc5e
18 changed files with 822 additions and 426 deletions
@@ -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();