Skip to content

Commit

Permalink
Added assertion for $overwrite = false.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pustułka committed Jun 8, 2017
1 parent c4676be commit 6f4f7ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/TestCase/ORM/EntityTest.php
Expand Up @@ -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'
Expand Down

0 comments on commit 6f4f7ce

Please sign in to comment.