Remove irrelevant test in App\RouterTest
- HTTP Methods other than POST are coerced into GET in App\Router constructor
This commit is contained in:
parent
8748bfd8ad
commit
6fd301a891
|
@ -127,18 +127,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()
|
||||
{
|
||||
return [
|
||||
|
|
Loading…
Reference in New Issue
Block a user