Skip to content

Commit e9c7a31

Browse files
committed
Check the model has the relation loaded
1 parent 5ed1cc1 commit e9c7a31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Http/Controllers/PublicWikiControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public function testShowEagerLoadsWikiLatestProfileForResource(): void {
2929
$resource = $controller->show($wiki->id);
3030

3131
$this->assertInstanceOf(PublicWikiResource::class, $resource);
32-
$this->assertSame(true, $resource->toArray(request())['reuse_prototype']);
32+
$this->assertTrue($resource->resource->relationLoaded('wikiLatestProfile'));
3333
}
3434
}

0 commit comments

Comments
 (0)