mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-20 20:04:20 -06:00
27 lines
835 B
PHP
27 lines
835 B
PHP
<?php
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
test('index 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.');
|
|
|
|
$user = \App\Models\User::factory()->create();
|
|
|
|
$response = $this->actingAs($user)->get(route('mediahub.index'));
|
|
|
|
$response->assertOk();
|
|
$response->assertViewIs('mediahub.index');
|
|
$response->assertViewHas('tv');
|
|
$response->assertViewHas('movies');
|
|
$response->assertViewHas('movieCategoryIds');
|
|
$response->assertViewHas('collections');
|
|
$response->assertViewHas('persons');
|
|
$response->assertViewHas('genres');
|
|
$response->assertViewHas('networks');
|
|
$response->assertViewHas('companies');
|
|
|
|
// TODO: perform additional assertions
|
|
});
|
|
|
|
// test cases...
|