Browse Source

Fix failing test in PHP5.4

Mark Story 14 years ago
parent
commit
2cc38b5ba7
2 changed files with 4 additions and 3 deletions
  1. 2 1
      lib/Cake/Config/config.php
  2. 2 2
      lib/Cake/Test/Case/Model/ModelWriteTest.php

+ 2 - 1
lib/Cake/Config/config.php

@@ -16,4 +16,5 @@
  * @since         CakePHP(tm) v 1.1.11.4062
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
  */
-return $config['Cake.version'] = '2.0.4';
+$config['Cake.version'] = '2.0.4';
+return $config;

+ 2 - 2
lib/Cake/Test/Case/Model/ModelWriteTest.php

@@ -2770,7 +2770,7 @@ class ModelWriteTest extends BaseModelTest {
 		$this->assertEquals(count($result['Tag']), 2);
 		$this->assertEquals($result['Tag'][0]['tag'], 'tag1');
 		$this->assertEquals(count($result['Comment']), 1);
-		$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1);
+		$this->assertEquals(count($result['Comment'][0]['comment']), 1);
 	}
 
 /**
@@ -4098,7 +4098,7 @@ class ModelWriteTest extends BaseModelTest {
 		$this->assertEquals(count($result['Tag']), 2);
 		$this->assertEquals($result['Tag'][0]['tag'], 'tag1');
 		$this->assertEquals(count($result['Comment']), 1);
-		$this->assertEquals(count($result['Comment'][0]['comment']['Article comment']), 1);
+		$this->assertEquals(count($result['Comment'][0]['comment']), 1);
 	}
 
 /**