diff --git a/tests/AppTest.php b/tests/AppTest.php index 4cbe57c46..c0ec80461 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -119,24 +119,7 @@ public function testCreatesRouteCollectorWhenNullWithInjectedContainer() $this->assertEquals($routeCollector, $app->getRouteCollector()); } - public function testGetMiddlewareDispatcherReturnsInjectedInstance() - { - $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class); - $middlewareDispatcherProphecy = $this->prophesize(MiddlewareDispatcherInterface::class); - - $app = new App( - $responseFactoryProphecy->reveal(), - null, - null, - null, - null, - $middlewareDispatcherProphecy->reveal() - ); - - $this->assertSame($middlewareDispatcherProphecy->reveal(), $app->getMiddlewareDispatcher()); - } - - public function testMiddlewareDispatcherGetsSeededWithInjectedInstance() + public function testGetMiddlewareDispatcherGetsSeededAndReturnsInjectedInstance() { $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class);