Skip to content

Commit

Permalink
add regression test for #4563
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Sep 11, 2014
1 parent 828efb0 commit 264054d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/TestCase/ORM/EntityTest.php
Expand Up @@ -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'));

Expand Down

0 comments on commit 264054d

Please sign in to comment.