mirror of
https://github.com/friendica/friendica
synced 2024-12-22 21:08:07 +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
|
@ -127,18 +127,6 @@ class RouterTest extends TestCase
|
||||||
$router->getModuleClass('/test');
|
$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()
|
public function dataRoutes()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in a new issue