From 5ba1514e049f0a619da230937c30c24a305764e2 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 14 Oct 2024 13:55:31 +1300 Subject: [PATCH] MNT Update test to reflect changes to template/model layers --- tests/ElementalAreaTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ElementalAreaTest.php b/tests/ElementalAreaTest.php index 746dfd03..76365be2 100644 --- a/tests/ElementalAreaTest.php +++ b/tests/ElementalAreaTest.php @@ -78,8 +78,8 @@ public function testGetOwnerPage() // OwnerClassName set $ownerpage2 = $area2->getOwnerPage(); - $this->assertEquals("DNADesign\Elemental\Tests\Src\TestPage", $ownerpage1); - $this->assertEquals("DNADesign\Elemental\Tests\Src\TestPage", $ownerpage2); + $this->assertInstanceOf(TestPage::class, $ownerpage1); + $this->assertInstanceOf(TestPage::class, $ownerpage2); // if ownerpage1 has draft changes then getOwnerPage() should return the // live version of the owner page, since the draft record will be