create([ 'title' => 'Test Recap', ]); expect($recap->title)->toBe('Test Recap') ->and($recap->exists)->toBeTrue(); }); it('has guarded attributes', function () { $guarded = ['id']; expect(ContentRecap::make()->getGuarded())->toEqual($guarded); }); it('belongs to classification', function () { $recap = ContentRecap::factory()->create(); expect($recap->classification())->toBeInstanceOf(BelongsTo::class); }); it('casts type to content type enum', function () { $recap = ContentRecap::factory()->create(['type' => ContentType::VIDEO]); expect($recap->type)->toBeInstanceOf(ContentType::class) ->and($recap->type)->toBe(ContentType::VIDEO); }); });