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
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue