mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Use publishRecursive() over doPublish()
doPublish() is deprecated.
This commit is contained in:
parent
a7eccffe8c
commit
79f3fd723d
@ -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(
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user