mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
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
1 changed files with 0 additions and 12 deletions
|
@ -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