create(['type' => InstitutionLinkType::Ticketing]); $this->assertInstanceOf(InstitutionLinkType::class, $link->fresh()->type); $this->assertSame(InstitutionLinkType::Ticketing, $link->fresh()->type); } public function test_it_belongs_to_an_institution(): void { $institution = Institution::factory()->create(); $link = InstitutionLink::factory()->create(['institution_id' => $institution->id]); $this->assertTrue($link->institution->is($institution)); } }