mirror of
https://github.com/BillyOutlast/UNIT3D.git
synced 2026-02-10 22:20:54 +01:00
33 lines
1007 B
PHP
33 lines
1007 B
PHP
<?php
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
test('destroy 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.');
|
|
|
|
$note = \App\Models\Note::factory()->create();
|
|
$user = \App\Models\User::factory()->create();
|
|
|
|
$response = $this->actingAs($user)->delete(route('staff.notes.destroy', [$note]));
|
|
|
|
$response->assertOk();
|
|
$this->assertModelMissing($note);
|
|
|
|
// TODO: perform additional assertions
|
|
});
|
|
|
|
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('staff.notes.index'));
|
|
|
|
$response->assertOk();
|
|
$response->assertViewIs('Staff.note.index');
|
|
|
|
// TODO: perform additional assertions
|
|
});
|
|
|
|
// test cases...
|