crate file test for damage and fix update request and add 2 option in validation

This commit is contained in:
2025-02-22 17:16:05 +03:30
parent 32630f6400
commit b61a3e6452
4 changed files with 69 additions and 8 deletions

View File

@@ -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();