Remove irrelevant test in App\RouterTest

- HTTP Methods other than POST are coerced into GET in App\Router constructor
This commit is contained in:
Hypolite Petovan 2019-10-13 10:16:38 -04:00
parent 8748bfd8ad
commit 6fd301a891

View 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()
{