From 6fd301a891f7fb14f6984932f2f8c5efd47c510e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 13 Oct 2019 10:16:38 -0400 Subject: [PATCH] Remove irrelevant test in App\RouterTest - HTTP Methods other than POST are coerced into GET in App\Router constructor --- tests/src/App/RouterTest.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/src/App/RouterTest.php b/tests/src/App/RouterTest.php index 37ba50bd23..b2dbaed20c 100644 --- a/tests/src/App/RouterTest.php +++ b/tests/src/App/RouterTest.php @@ -126,18 +126,6 @@ class RouterTest extends TestCase $router->getModuleClass('/test'); } - - public function testGetPostModuleClassMethodNotAllowed() - { - $this->expectException(MethodNotAllowedException::class); - - $router = new Router(['REQUEST_METHOD' => 'PUT']); - - $routeCollector = $router->getRouteCollector(); - $routeCollector->addRoute([Router::GET, Router::POST], '/test', 'TestModuleClassName'); - - $router->getModuleClass('/test'); - } public function dataRoutes() {