mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixing CMSMainTest using old code, updating to new CMS admin/pages URL
This commit is contained in:
parent
2cb89ed696
commit
0515555ab1
@ -44,8 +44,7 @@ class CMSMainTest extends FunctionalTest {
|
||||
|
||||
// Some modules (e.g., cmsworkflow) will remove this action
|
||||
if(isset(CMSBatchActionHandler::$batch_actions['publish'])) {
|
||||
$response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => implode(',', array($page1->ID, $page2->ID)), 'ajax' => 1), $this->session());
|
||||
|
||||
$response = Director::test('admin/pages/batchactions/publish', array('csvIDs' => implode(',', array($page1->ID, $page2->ID)), 'ajax' => 1), $this->session());
|
||||
$responseData = Convert::json2array($response->getBody());
|
||||
$this->assertArrayHasKey($page1->ID, $responseData['modified']);
|
||||
$this->assertArrayHasKey($page2->ID, $responseData['modified']);
|
||||
@ -148,7 +147,7 @@ class CMSMainTest extends FunctionalTest {
|
||||
$page->doPublish();
|
||||
$page->delete();
|
||||
|
||||
$response = $this->get('admin/cms/getitem?ID=' . $pageID . '&ajax=1');
|
||||
$response = $this->get('admin/pages/edit/show/' . $pageID);
|
||||
|
||||
$livePage = Versioned::get_one_by_stage("SiteTree", "Live", "\"SiteTree\".\"ID\" = $pageID");
|
||||
$this->assertInstanceOf('SiteTree', $livePage);
|
||||
|
Loading…
Reference in New Issue
Block a user