14 lines
350 B
PHP
14 lines
350 B
PHP
<?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);
|
|
});
|