Skip to content

Commit

Permalink
test fix??
Browse files Browse the repository at this point in the history
  • Loading branch information
jflearn committed Sep 25, 2024
1 parent 3d33017 commit 493759a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/Model/WithRollupSupportExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
}


Expand Down

0 comments on commit 493759a

Please sign in to comment.