From f602a9176e527fa98f1d4a598c98ea43830280f6 Mon Sep 17 00:00:00 2001 From: Aimeos Date: Sun, 3 Feb 2019 17:01:52 +0100 Subject: [PATCH] Adapt to getManager() change in core setup --- lib/custom/setup/unittest/CustomerAddLaravelTestData.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/custom/setup/unittest/CustomerAddLaravelTestData.php b/lib/custom/setup/unittest/CustomerAddLaravelTestData.php index 3338730..c036733 100644 --- a/lib/custom/setup/unittest/CustomerAddLaravelTestData.php +++ b/lib/custom/setup/unittest/CustomerAddLaravelTestData.php @@ -33,10 +33,15 @@ public function migrate() /** * Returns the manager for the current setup task * + * @param string $domain Domain name of the manager * @return \Aimeos\MShop\Common\Manager\Iface Manager object */ - protected function getManager() + protected function getManager( $domain ) { - return \Aimeos\MShop\Customer\Manager\Factory::create( $this->additional, 'Laravel' ); + if( $domain === 'customer' ) { + return \Aimeos\MShop\Customer\Manager\Factory::create( $this->additional, 'Laravel' ); + } + + return parent::getManager( $domain ); } }