From 7d43f0c5e23013be86202f6cf36d9344d99dcc24 Mon Sep 17 00:00:00 2001 From: Geert Eltink Date: Sat, 17 Mar 2018 14:57:16 +0100 Subject: [PATCH] Fix tests for #592 --- test/ConfigProviderTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/ConfigProviderTest.php b/test/ConfigProviderTest.php index eeb4338d..5817fa3b 100644 --- a/test/ConfigProviderTest.php +++ b/test/ConfigProviderTest.php @@ -43,13 +43,6 @@ public function testProviderDefinesExpectedAliases() $this->assertArrayHasKey('Zend\Expressive\Delegate\DefaultDelegate', $aliases); } - public function testProviderDefinesExpectedInvokableServices() - { - $config = $this->provider->getDependencies(); - $invokables = $config['invokables']; - $this->assertArrayHasKey(RouterMiddleware\DispatchMiddleware::class, $invokables); - } - public function testProviderDefinesExpectedFactoryServices() { $config = $this->provider->getDependencies(); @@ -62,6 +55,7 @@ public function testProviderDefinesExpectedFactoryServices() $this->assertArrayHasKey(NotFoundHandler::class, $factories); $this->assertArrayHasKey(ResponseInterface::class, $factories); $this->assertArrayHasKey(StreamInterface::class, $factories); + $this->assertArrayHasKey(RouterMiddleware\DispatchMiddleware::class, $factories); $this->assertArrayHasKey(RouterMiddleware\ImplicitHeadMiddleware::class, $factories); $this->assertArrayHasKey(RouterMiddleware\ImplicitOptionsMiddleware::class, $factories); $this->assertArrayHasKey(RouterMiddleware\RouteMiddleware::class, $factories); @@ -73,7 +67,6 @@ public function testInvocationReturnsArrayWithDependencies() $this->assertInternalType('array', $config); $this->assertArrayHasKey('dependencies', $config); $this->assertArrayHasKey('aliases', $config['dependencies']); - $this->assertArrayHasKey('invokables', $config['dependencies']); $this->assertArrayHasKey('factories', $config['dependencies']); } }