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 482c565 commit 5ec3f20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/Controllers/RollupPageControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public function testDisplayingRollupPageInline() {
$rollupPage->Content = '<p>Rollup</p>';
$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() );
Expand All @@ -66,10 +66,10 @@ public function testDisplayingRollupPageAsTabs() {
$rollupPage->Content = '<p>Rollup</p>';
$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() );
Expand All @@ -90,7 +90,7 @@ public function testBlockDefaultRollupPageCSS() {
$rollupPage->Title = 'Rollup Page';
$rollupPage->Content = '<p>Rollup</p>';
$rollupPage->write();
$rollupPage->publish( 'Stage', 'Live' );
$rollupPage->publishSingle();

$response = $this->get( $rollupPage->Link() );

Expand All @@ -113,7 +113,7 @@ public function testBlockDefaultRollupPageJavascript() {
$rollupPage->Title = 'Rollup Page';
$rollupPage->Content = '<p>Rollup</p>';
$rollupPage->write();
$rollupPage->publish( 'Stage', 'Live' );
$rollupPage->publishSingle();

$response = $this->get( $rollupPage->Link() );

Expand Down

0 comments on commit 5ec3f20

Please sign in to comment.