add assert that habtm save does not return false

This commit is contained in:
Ceeram 2013-04-19 19:37:23 +02:00
parent efd86a498a
commit 842b1802d9

View file

@ -1652,7 +1652,9 @@ class ModelWriteTest extends BaseModelTest {
$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(