13 lines
346 B
PHP
13 lines
346 B
PHP
<?php
|
|
|
|
use App\Enums\ApprovalStatus;
|
|
use App\Models\Report;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
uses(RefreshDatabase::class);
|
|
|
|
test('report can be created and has status', function () {
|
|
$report = Report::factory()->create(['status' => ApprovalStatus::PENDING]);
|
|
expect($report->status)->toBe(ApprovalStatus::PENDING);
|
|
});
|