Skip to content
This repository
Browse code

MINOR Fixed broken test from json changes

  • Loading branch information...
commit ded3fd8d68893f3a896ef1398bf1c4cac7b69ee4 1 parent 6514412
Sean Harvey authored March 30, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/controller/CMSMainTest.php
4  tests/controller/CMSMainTest.php
@@ -47,8 +47,8 @@ function testPublish() {
47 47
 			$response = Director::test("admin/cms/batchactions/publish", array('csvIDs' => implode(',', array($page1->ID, $page2->ID)), 'ajax' => 1), $this->session());
48 48
 	
49 49
 			$responseData = Convert::json2array($response->getBody());
50  
-			$this->assertTrue(property_exists($responseData['modified'], $page1->ID));
51  
-			$this->assertTrue(property_exists($responseData['modified'], $page2->ID));
  50
+			$this->assertArrayHasKey($page1->ID, $responseData['modified']);
  51
+			$this->assertArrayHasKey($page2->ID, $responseData['modified']);
52 52
 		}
53 53
 
54 54
 		// Get the latest version of the redirector page 

0 notes on commit ded3fd8

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