mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2765 from creative-commoners/pulls/4/rescue-master-no-dopublish
FIX Use publishRecursive() over doPublish()
This commit is contained in:
commit
f51d4f0aeb
@ -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