diff --git a/tests/TestCase/ORM/AssociationTest.php b/tests/TestCase/ORM/AssociationTest.php index ffc78546e66..e6247881943 100644 --- a/tests/TestCase/ORM/AssociationTest.php +++ b/tests/TestCase/ORM/AssociationTest.php @@ -187,12 +187,10 @@ public function testTargetPlugin() 'sourceTable' => $this->source, 'joinType' => 'INNER' ]; + $this->association = $this->getMock( '\Cake\ORM\Association', - [ - '_options', 'attachTo', '_joinCondition', 'cascadeDelete', 'isOwningSide', - 'saveAssociated', 'eagerLoader', 'type' - ], + ['type', 'eagerLoader', 'cascadeDelete', 'isOwningSide', 'saveAssociated'], ['ThisAssociationName', $config] ); @@ -302,10 +300,7 @@ public function testFinderInConstructor() ]; $assoc = $this->getMock( '\Cake\ORM\Association', - [ - '_options', 'attachTo', '_joinCondition', 'cascadeDelete', 'isOwningSide', - 'saveAssociated', 'eagerLoader', 'type' - ], + ['type', 'eagerLoader', 'cascadeDelete', 'isOwningSide', 'saveAssociated'], ['Foo', $config] ); $this->assertEquals('published', $assoc->finder());