diff --git a/tests/php/Model/SiteTreeTest.php b/tests/php/Model/SiteTreeTest.php index d919a674..229b7ded 100644 --- a/tests/php/Model/SiteTreeTest.php +++ b/tests/php/Model/SiteTreeTest.php @@ -1817,7 +1817,7 @@ class SiteTreeTest extends SapphireTest // END DRAFT // BEGIN PUBLISHED - $page->doPublish(); + $page->publishRecursive(); $actions = $page->getCMSActions(); $this->assertNull( $actions->fieldByName('MajorActions.action_save'), @@ -1936,7 +1936,7 @@ class SiteTreeTest extends SapphireTest // END DRAFT // BEGIN PUBLISHED - $page->doPublish(); + $page->publishRecursive(); $actions = $page->getCMSActions(); $this->assertEmpty( diff --git a/tests/php/Search/DatabaseSearchEngineTest.php b/tests/php/Search/DatabaseSearchEngineTest.php index 8a261309..4bbe9a37 100644 --- a/tests/php/Search/DatabaseSearchEngineTest.php +++ b/tests/php/Search/DatabaseSearchEngineTest.php @@ -41,7 +41,7 @@ class DatabaseSearchEngineTest extends SapphireTest $page = new SiteTree(); $page->Title = "This page provides food as bar"; $page->write(); - $page->doPublish(); + $page->publishRecursive(); $results = DB::get_conn()->searchEngine([ SiteTree::class, File::class ], "foo* as* bar*", 0, 100, "\"Relevance\" DESC", "", true);