mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-20 11:49:31 -06:00
23 lines
716 B
PHP
23 lines
716 B
PHP
<?php
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
test('show returns an ok response', function (): void {
|
|
$this->markTestIncomplete('This test case was generated by Shift. When you are ready, remove this line and complete this test case.');
|
|
|
|
$season = \App\Models\Season::factory()->create();
|
|
$tv = \App\Models\Tv::factory()->create();
|
|
$user = \App\Models\User::factory()->create();
|
|
|
|
$response = $this->actingAs($user)->get(route('mediahub.season.show', ['id' => $id]));
|
|
|
|
$response->assertOk();
|
|
$response->assertViewIs('mediahub.tv.season.show');
|
|
$response->assertViewHas('season', $season);
|
|
$response->assertViewHas('show');
|
|
|
|
// TODO: perform additional assertions
|
|
});
|
|
|
|
// test cases...
|