Create tests for app/Models/AuditionFlag
This commit is contained in:
parent
8d76c9e66d
commit
1466cc8c32
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use App\Models\Audition;
|
||||||
|
use App\Models\AuditionFlag;
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
|
||||||
|
uses(RefreshDatabase::class);
|
||||||
|
|
||||||
|
it('returns its audition flag', function () {
|
||||||
|
$audition = Audition::factory()->create();
|
||||||
|
$audition->addFlag('seats_published');
|
||||||
|
expect(AuditionFlag::first()->audition->id)->toEqual($audition->id);
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue