Add dumpContainer to container factory

[MAILPOET-1605]
This commit is contained in:
Rostislav Wolny
2018-10-31 11:43:54 +01:00
parent 0c155ffe7c
commit f39c0c58c2
4 changed files with 65 additions and 23 deletions

View File

@ -26,7 +26,8 @@ class RouterTest extends \MailPoetTest {
'data' => base64_encode(json_encode(array('data' => 'dummy data')))
);
$this->access_control = new AccessControl();
$this->container = ContainerFactory::createContainer();
$container_factory = new ContainerFactory(true);
$this->container = $container_factory->createContainer();
$this->container->register(RouterTestMockEndpoint::class)->setPublic(true);
$this->container->compile();
$this->router = new Router($this->access_control, $this->container, $this->router_data);