From: Hypolite Petovan Date: Sun, 13 Oct 2019 14:16:38 +0000 (-0400) Subject: Remove irrelevant test in App\RouterTest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fd301a891f7fb14f6984932f2f8c5efd47c510e;p=friendica.git Remove irrelevant test in App\RouterTest - HTTP Methods other than POST are coerced into GET in App\Router constructor --- 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() {