From 19931dd374ac5f086e54f5c4aceeb9c99b4ce256 Mon Sep 17 00:00:00 2001 From: ndm2 Date: Thu, 11 Dec 2014 13:09:29 +0100 Subject: [PATCH] Remove path assertion, rely on `testErrorPathReading` --- tests/TestCase/ORM/EntityTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/TestCase/ORM/EntityTest.php b/tests/TestCase/ORM/EntityTest.php index 55adadc0c48..7a2af8db550 100644 --- a/tests/TestCase/ORM/EntityTest.php +++ b/tests/TestCase/ORM/EntityTest.php @@ -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')); } /** @@ -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]