From 5ec3f2008ba37cce92d169baa91ff8f329b946f3 Mon Sep 17 00:00:00 2001 From: John Learn Date: Wed, 25 Sep 2024 12:42:46 -0400 Subject: [PATCH] test fix --- tests/unit/Controllers/RollupPageControllerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/Controllers/RollupPageControllerTest.php b/tests/unit/Controllers/RollupPageControllerTest.php index a97a0d8..f90d466 100644 --- a/tests/unit/Controllers/RollupPageControllerTest.php +++ b/tests/unit/Controllers/RollupPageControllerTest.php @@ -42,10 +42,10 @@ public function testDisplayingRollupPageInline() { $rollupPage->Content = '

Rollup

'; $rollupPage->ShowLinksOnly = RollupPage::DISPLAY_INLINE; $rollupPage->write(); - $rollupPage->publish( 'Stage', 'Live' ); + $rollupPage->publishSingle(); $child1 = $this->addChildPage( $rollupPage, 'Child 1' ); - $child1->publish( 'Stage', 'Live' ); + $child1->publishSingle(); $response = $this->get( $rollupPage->Link() ); $this->assertEquals( 200, $response->getStatusCode() ); @@ -66,10 +66,10 @@ public function testDisplayingRollupPageAsTabs() { $rollupPage->Content = '

Rollup

'; $rollupPage->ShowLinksOnly = RollupPage::DISPLAY_TABS; $rollupPage->write(); - $rollupPage->publish( 'Stage', 'Live' ); + $rollupPage->publishSingle(); $child1 = $this->addChildPage( $rollupPage, 'Child 1' ); - $child1->publish( 'Stage', 'Live' ); + $child1->publishSingle(); $response = $this->get( $rollupPage->Link() ); $this->assertEquals( 200, $response->getStatusCode() ); @@ -90,7 +90,7 @@ public function testBlockDefaultRollupPageCSS() { $rollupPage->Title = 'Rollup Page'; $rollupPage->Content = '

Rollup

'; $rollupPage->write(); - $rollupPage->publish( 'Stage', 'Live' ); + $rollupPage->publishSingle(); $response = $this->get( $rollupPage->Link() ); @@ -113,7 +113,7 @@ public function testBlockDefaultRollupPageJavascript() { $rollupPage->Title = 'Rollup Page'; $rollupPage->Content = '

Rollup

'; $rollupPage->write(); - $rollupPage->publish( 'Stage', 'Live' ); + $rollupPage->publishSingle(); $response = $this->get( $rollupPage->Link() );