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

Commit

Permalink
Fix tests for #592
Browse files Browse the repository at this point in the history
  • Loading branch information
geerteltink committed Mar 17, 2018
1 parent d5fa367 commit 7d43f0c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/ConfigProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand All @@ -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']);
}
}

0 comments on commit 7d43f0c

Please sign in to comment.