Skip to content

Commit

Permalink
add assert that habtm save does not return false
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Apr 19, 2013
1 parent efd86a4 commit 842b180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -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(
Expand Down

0 comments on commit 842b180

Please sign in to comment.