-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathPersonAliaResourceTest.php
More file actions
30 lines (23 loc) · 800 Bytes
/
PersonAliaResourceTest.php
File metadata and controls
30 lines (23 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
namespace Tests\Feature\Filament\Resources;
use App\Filament\App\Resources\PersonAliaResource;
use App\Models\PersonAlia;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class PersonAliaResourceTest extends TestCase
{
use RefreshDatabase;
public function test_resource_has_correct_model(): void
{
$this->assertEquals(PersonAlia::class, PersonAliaResource::getModel());
}
public function test_resource_navigation_is_configured(): void
{
$this->assertNotEmpty(PersonAliaResource::getNavigationLabel());
}
public function test_person_alia_can_be_created_in_database(): void
{
$personAlia = PersonAlia::factory()->create();
$this->assertDatabaseHas('person_alia', ['id' => $personAlia->id]);
}
}