Skip to content

Commit

Permalink
MINOR Fixing CMSMainTest using old code, updating to new CMS admin/pa…
Browse files Browse the repository at this point in the history
…ges URL
  • Loading branch information
Sean Harvey committed May 22, 2012
1 parent 2cb89ed commit 0515555
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/controller/CMSMainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0515555

Please sign in to comment.