Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed broken test from json changes

  • Loading branch information...
commit ded3fd8d68893f3a896ef1398bf1c4cac7b69ee4 1 parent 6514412
@halkyon halkyon authored
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 ded3fd8

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