Skip to content
Browse files

Merge pull request #84 from halkyon/json_changes

MINOR Fixed broken test from json changes
  • Loading branch information...
2 parents 6514412 + ded3fd8 commit 89bc4fa2ea439f5f602b6beece10036b16e6e2ac @stojg stojg committed Mar 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/controller/CMSMainTest.php
View
4 tests/controller/CMSMainTest.php
@@ -47,8 +47,8 @@ function testPublish() {
$response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => implode(',', array($page1->ID, $page2->ID)), 'ajax' => 1), $this->session());
$responseData = Convert::json2array($response->getBody());
- $this->assertTrue(property_exists($responseData['modified'], $page1->ID));
- $this->assertTrue(property_exists($responseData['modified'], $page2->ID));
+ $this->assertArrayHasKey($page1->ID, $responseData['modified']);
+ $this->assertArrayHasKey($page2->ID, $responseData['modified']);
}
// Get the latest version of the redirector page

0 comments on commit 89bc4fa

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