Skip to content
Browse files

MINOR Fixing CMSMainTest using old code, updating to new CMS admin/pa…

…ges URL
  • Loading branch information...
1 parent 2cb89ed commit 0515555ab1872e7af388004a7daf9a6bd8357171 @halkyon halkyon committed May 22, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/controller/CMSMainTest.php
View
5 tests/controller/CMSMainTest.php
@@ -44,8 +44,7 @@ function testPublish() {
// 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 @@ function testDraftDeletedPageCanBeOpenedInCMS() {
$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);

0 comments on commit 0515555

Please sign in to comment.
Something went wrong with that request. Please try again.