Skip to content

Commit

Permalink
Test Map route with lowercase method
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanPaiva committed Sep 28, 2018
1 parent 097c895 commit d54b5ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,19 @@ public function testMapRoute()
$this->assertAttributeContains('POST', 'methods', $route);
}

public function testMapRouteWithLowercaseMethod()
{
$path = '/foo';
$callable = function ($req, $res) {
// Do something
};
$app = new App();
$route = $app->map(['get'], $path, $callable);

$this->assertInstanceOf('\Slim\Route', $route);
$this->assertAttributeContains('get', 'methods', $route);
}

public function testRedirectRoute()
{
$source = '/foo';
Expand Down

0 comments on commit d54b5ba

Please sign in to comment.