mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-20 20:04:20 -06:00
23 lines
720 B
PHP
23 lines
720 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.');
|
|
|
|
$torrent = \App\Models\Torrent::factory()->create();
|
|
$peers = \App\Models\Peer::factory()->times(3)->create();
|
|
$user = \App\Models\User::factory()->create();
|
|
|
|
$response = $this->actingAs($user)->get(route('peers', ['id' => $id]));
|
|
|
|
$response->assertOk();
|
|
$response->assertViewIs('torrent.peers');
|
|
$response->assertViewHas('torrent', $torrent);
|
|
$response->assertViewHas('peers', $peers);
|
|
|
|
// TODO: perform additional assertions
|
|
});
|
|
|
|
// test cases...
|