]> git.mxchange.org Git - friendica.git/commitdiff
Remove irrelevant test in App\RouterTest
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 13 Oct 2019 14:16:38 +0000 (10:16 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 13 Oct 2019 14:16:38 +0000 (10:16 -0400)
- HTTP Methods other than POST are coerced into GET in App\Router constructor

tests/src/App/RouterTest.php

index 37ba50bd230e31041b50acf39e3b1b6ca5201c36..b2dbaed20c8536440da9fa1626d37353bd8db8fa 100644 (file)
@@ -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()
        {