diff --git a/tests/TestCase/Factory/BaseFactoryAssociationsTest.php b/tests/TestCase/Factory/BaseFactoryAssociationsTest.php index 8b039f1..2a82e86 100644 --- a/tests/TestCase/Factory/BaseFactoryAssociationsTest.php +++ b/tests/TestCase/Factory/BaseFactoryAssociationsTest.php @@ -230,7 +230,7 @@ public function testGetAssociatedFactoryWithMultipleDepthAndMultipleTimes() $n = 10; $country = 'Foo'; $path = 'BusinessAddress.City.Country'; - $authors = AuthorFactory::make($n)->with($country)->persist(); + $authors = AuthorFactory::make($n)->with($path, $country)->persist(); for ($i = 0; $i < $n; $i++) { $this->assertInstanceOf(Country::class, $authors[$i]->business_address->city->country);