diff --git a/tests/TestCase/ORM/EntityTest.php b/tests/TestCase/ORM/EntityTest.php index 58be67105e7..018e0df0031 100644 --- a/tests/TestCase/ORM/EntityTest.php +++ b/tests/TestCase/ORM/EntityTest.php @@ -1592,6 +1592,15 @@ public function testGetSetInvalid() 'body' => 'einstein' ], $entity->getInvalid()); + $set = $entity->setInvalid([ + 'title' => 'nikola', + 'body' => 'tesla' + ]); + $this->assertSame([ + 'title' => 'albert', + 'body' => 'einstein' + ], $set->getInvalid()); + $overwrite = $entity->setInvalid([ 'title' => 'nikola', 'body' => 'tesla'