mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
add assert that habtm save does not return false
This commit is contained in:
parent
efd86a498a
commit
842b1802d9
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue