Skip to content

Commit

Permalink
Remove path assertion, rely on testErrorPathReading
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 committed Dec 11, 2014
1 parent 0fbf8ba commit 19931dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/TestCase/ORM/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,6 @@ public function testErrorsDeep() {
['c' => ['error3'], 'd' => ['error4']]
];
$this->assertEquals($expected, $author->errors('multiple'));

$user->set('author', $author);
$expected = ['thing' => ['this is a mistake']];
$this->assertEquals($expected, $author->errors('multiple.0.author'));
}

/**
Expand All @@ -861,8 +857,8 @@ public function testErrorsDeep() {
* @return void
*/
public function testErrorPathReading() {
$assoc = new Entity;
$entity = new Entity([
$assoc = new User;
$entity = new Author([
'field' => 'value',
'one' => $assoc,
'many' => [$assoc]
Expand Down

0 comments on commit 19931dd

Please sign in to comment.