Added tests

This commit is contained in:
Constantin Graf
2024-04-15 19:25:09 +02:00
parent feb70910c7
commit eea5a3d01b
8 changed files with 87 additions and 2 deletions

View File

@@ -38,4 +38,16 @@ class OrganizationResourceTest extends FilamentTestCase
$response->assertSuccessful();
$response->assertCanSeeTableRecords($organizations);
}
public function test_can_see_edit_page_of_organization(): void
{
// Arrange
$organization = Organization::factory()->create();
// Act
$response = Livewire::test(OrganizationResource\Pages\EditOrganization::class, ['record' => $organization->getKey()]);
// Assert
$response->assertSuccessful();
}
}