diff --git a/test/unit/Adapter/AdapterAbstractServiceFactoryTest.php b/test/unit/Adapter/AdapterAbstractServiceFactoryTest.php index f9051630..d7ad9a66 100644 --- a/test/unit/Adapter/AdapterAbstractServiceFactoryTest.php +++ b/test/unit/Adapter/AdapterAbstractServiceFactoryTest.php @@ -1,10 +1,11 @@ serviceManager = new ServiceManager(); - - $config = new Config([ - 'abstract_factories' => [AdapterAbstractServiceFactory::class], - ]); - $config->configureServiceManager($this->serviceManager); + $this->serviceManager->configure( + [ + 'abstract_factories' => [AdapterAbstractServiceFactory::class], + ] + ); $this->serviceManager->setService('config', [ 'db' => [ diff --git a/test/unit/Adapter/AdapterServiceDelegatorTest.php b/test/unit/Adapter/AdapterServiceDelegatorTest.php index b1217ece..f151067e 100644 --- a/test/unit/Adapter/AdapterServiceDelegatorTest.php +++ b/test/unit/Adapter/AdapterServiceDelegatorTest.php @@ -211,6 +211,7 @@ public function testDelegatorWithPluginManager() /** @var AbstractSingleInstancePluginManager $pluginManager */ $pluginManager = new class ($container, $pluginManagerConfig) extends AbstractSingleInstancePluginManager { + protected string $instanceOf = ConcreteAdapterAwareObject::class; }; $options = [ @@ -219,7 +220,7 @@ public function testDelegatorWithPluginManager() ]; /** @var ConcreteAdapterAwareObject $result */ - $result = $pluginManager->get( + $result = $pluginManager->build( ConcreteAdapterAwareObject::class, $options );