mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
FIX Replace deprecated doPublish() method with publishRecursive()
This commit is contained in:
parent
4f15894f86
commit
aa370f8df6
@ -315,7 +315,7 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest
|
|||||||
$subsite1NewPage->URLSegment = 'important-page'; // Also exists in main subsite
|
$subsite1NewPage->URLSegment = 'important-page'; // Also exists in main subsite
|
||||||
$subsite1NewPage->write();
|
$subsite1NewPage->write();
|
||||||
$this->assertEquals('important-page', $subsite1NewPage->URLSegment);
|
$this->assertEquals('important-page', $subsite1NewPage->URLSegment);
|
||||||
$subsite1NewPage->doPublish();
|
$subsite1NewPage->publishRecursive();
|
||||||
$subsite1NewPageLive = Versioned::get_one_by_stage(
|
$subsite1NewPageLive = Versioned::get_one_by_stage(
|
||||||
'Page',
|
'Page',
|
||||||
'Live',
|
'Live',
|
||||||
@ -330,7 +330,7 @@ class SiteTreeSubsitesTest extends BaseSubsiteTest
|
|||||||
$subsite1NewPage2->URLSegment = 'important-page'; // Also exists in main subsite
|
$subsite1NewPage2->URLSegment = 'important-page'; // Also exists in main subsite
|
||||||
$subsite1NewPage2->write();
|
$subsite1NewPage2->write();
|
||||||
$this->assertEquals('important-page-2', $subsite1NewPage2->URLSegment);
|
$this->assertEquals('important-page-2', $subsite1NewPage2->URLSegment);
|
||||||
$subsite1NewPage2->doPublish();
|
$subsite1NewPage2->publishRecursive();
|
||||||
$subsite1NewPage2Live = Versioned::get_one_by_stage(
|
$subsite1NewPage2Live = Versioned::get_one_by_stage(
|
||||||
'Page',
|
'Page',
|
||||||
'Live',
|
'Live',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user