Skip to content
Permalink
Browse files

add assert that habtm save does not return false

  • Loading branch information...
ceeram committed Apr 19, 2013
1 parent efd86a4 commit 842b1802d99344f6ce0b0182b1a5b39dd2a5f551
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -1652,7 +1652,9 @@ public function testSaveHabtmNoPrimaryData() {
$TestModel->id = 2;
$data = array('Tag' => array('Tag' => array(2)));
$TestModel->save($data);
$result = $TestModel->save($data);
$this->assertEquals($data['Tag'], $result['Tag']);
$result = $TestModel->findById(2);
$expected = array(

0 comments on commit 842b180

Please sign in to comment.
You can’t perform that action at this time.