FIX Use publishRecursive() over doPublish()

doPublish() is deprecated.
This commit is contained in:
Robbie Averill 2018-11-26 15:13:18 +01:00 committed by Guy Sartorelli
parent a7eccffe8c
commit 79f3fd723d
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A
2 changed files with 3 additions and 3 deletions

View File

@ -1817,7 +1817,7 @@ class SiteTreeTest extends SapphireTest
// END DRAFT // END DRAFT
// BEGIN PUBLISHED // BEGIN PUBLISHED
$page->doPublish(); $page->publishRecursive();
$actions = $page->getCMSActions(); $actions = $page->getCMSActions();
$this->assertNull( $this->assertNull(
$actions->fieldByName('MajorActions.action_save'), $actions->fieldByName('MajorActions.action_save'),
@ -1936,7 +1936,7 @@ class SiteTreeTest extends SapphireTest
// END DRAFT // END DRAFT
// BEGIN PUBLISHED // BEGIN PUBLISHED
$page->doPublish(); $page->publishRecursive();
$actions = $page->getCMSActions(); $actions = $page->getCMSActions();
$this->assertEmpty( $this->assertEmpty(

View File

@ -41,7 +41,7 @@ class DatabaseSearchEngineTest extends SapphireTest
$page = new SiteTree(); $page = new SiteTree();
$page->Title = "This page provides food as bar"; $page->Title = "This page provides food as bar";
$page->write(); $page->write();
$page->doPublish(); $page->publishRecursive();
$results = DB::get_conn()->searchEngine([ SiteTree::class, File::class ], "foo* as* bar*", 0, 100, "\"Relevance\" DESC", "", true); $results = DB::get_conn()->searchEngine([ SiteTree::class, File::class ], "foo* as* bar*", 0, 100, "\"Relevance\" DESC", "", true);