create(); $this->assertDatabaseHas('pages', ['id' => $page->id]); } public function test_page_has_author_relationship() { $page = Page::factory()->create(); $this->assertInstanceOf(User::class, $page->author); } }