diff --git a/tests/unit/Model/WithRollupSupportExtensionTest.php b/tests/unit/Model/WithRollupSupportExtensionTest.php index 8d998c7..c825bc4 100644 --- a/tests/unit/Model/WithRollupSupportExtensionTest.php +++ b/tests/unit/Model/WithRollupSupportExtensionTest.php @@ -43,21 +43,21 @@ public function testLink() { $page1->ParentID = $rollupPage->ID; $page1->write(); - // $this->assertEquals( '/rollup-page/page-1/', $page1->Link() ); + $this->asserContains( $page1->Link(), ['/rollup-page/page-1/','/rollup-page/page-1'] ); $rollupPage->ShowLinksOnly = 0; $rollupPage->write(); $page1->ParentID = $rollupPage->ID; $page1->write(); - $this->assertEquals( '/rollup-page/#page-1', $page1->Link() ); + $this->asserContains( $page1->Link(), ['/rollup-page/#page-1','/rollup-page#page-1'] ); $rollupPage->ShowLinksOnly = 2; $rollupPage->write(); $page1->ParentID = $rollupPage->ID; $page1->write(); - $this->assertEquals( '/rollup-page/#page-1', $page1->Link() ); + $this->asserContains( $page1->Link(), ['/rollup-page/#page-1','/rollup-page#page-1'] ); }