Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7c84e01

Browse files
committed
Fixed FormElementManagerFactoryTest
Have to use `Zend\Service\Config` instead of array configuration
1 parent 2da1a42 commit 7c84e01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Service/FormElementManagerFactoryTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ class FormElementManagerFactoryTest extends TestCase
3030
public function setUp()
3131
{
3232
$formElementManagerFactory = new FormElementManagerFactory();
33-
$this->services = new ServiceManager([
33+
$serviceManagerConfig = new Config([
3434
'factories' => [
3535
'FormElementManager' => $formElementManagerFactory,
3636
],
3737
'services' => [
3838
'config' => [],
3939
],
4040
]);
41+
$services = new ServiceManager();
42+
$serviceManagerConfig->configureServiceManager($services);
43+
44+
$this->services = $services;
4145
}
4246

4347
public function testWillGetFormElementManager()

0 commit comments

Comments
 (0)