Skip to content
Permalink
Browse files

add regression test for #4563

  • Loading branch information...
antograssiot committed Sep 11, 2014
1 parent 828efb0 commit 264054d9ef36fb6b355417fb56a3cb1147441a6d
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/TestCase/ORM/EntityTest.php
@@ -786,6 +786,13 @@ public function testErrors() {
$this->assertSame($entity, $entity->errors('foo', 'bar'));
$this->assertEquals(['bar'], $entity->errors('foo'));
$this->assertEquals([], $entity->errors('boo'));
$entity['boo'] = [
'someting' => 'stupid',
'and' => false
];
$this->assertEquals([], $entity->errors('boo'));
$entity->errors('foo', 'other error');
$this->assertEquals(['other error'], $entity->errors('foo'));

0 comments on commit 264054d

Please sign in to comment.
You can’t perform that action at this time.