Files
UNIT3D-Community-Edition/tests/Feature/Http/Controllers/ReseedControllerTest.php
2023-07-11 18:27:15 +00:00

23 lines
688 B
PHP

<?php
uses(RefreshDatabase::class);
test('store 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();
$user = \App\Models\User::factory()->create();
$histories = \App\Models\History::factory()->times(3)->create();
$authUser = \App\Models\User::factory()->create();
$response = $this->actingAs($authUser)->post(route('reseed', ['id' => $id]), [
// TODO: send request data
]);
$response->assertOk();
// TODO: perform additional assertions
});
// test cases...