crate file test for damage and fix update request and add 2 option in validation
This commit is contained in:
@@ -13,13 +13,13 @@ class ListTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase, WithFaker;
|
||||
|
||||
public function test_user_cannot_access_authentication(): void
|
||||
public function test_user_cannot_access_authentication_list_damage(): void
|
||||
{
|
||||
|
||||
$response = $this->getJson(route('v3.damages.list'));
|
||||
$response->assertStatus(401);
|
||||
}
|
||||
public function test_all_damages_returned_successfully_for_list(): void
|
||||
public function test_all_damages_returned_successfully_for_list_damage(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
Damage::factory()->count(5)->create();
|
||||
|
||||
Reference in New Issue
Block a user