Hoan thien core finance v2
This commit is contained in:
13
tests/Feature/ContractResourceRenderTest.php
Normal file
13
tests/Feature/ContractResourceRenderTest.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Filament\Resources\Contracts\ContractResource;
|
||||
use App\Models\User;
|
||||
|
||||
it('can render contracts index without error', function () {
|
||||
$this->actingAs(User::factory()->create());
|
||||
|
||||
$response = $this->get(ContractResource::getUrl('index'));
|
||||
|
||||
// Chỉ kiểm tra không bị 500 error
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
Reference in New Issue
Block a user