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