From 842b1802d99344f6ce0b0182b1a5b39dd2a5f551 Mon Sep 17 00:00:00 2001 From: Ceeram Date: Fri, 19 Apr 2013 19:37:23 +0200 Subject: [PATCH] add assert that habtm save does not return false --- lib/Cake/Test/Case/Model/ModelWriteTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index e69a9de8a..46ddd8a34 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -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(