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 authored and akrabat committed Nov 25, 2018
1 parent 55368e1 commit 1a63671
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 @@ -241,6 +241,19 @@ public function testMapRoute()
$this->assertAttributeContains('POST', 'methods', $route);
}

public function testMapRouteWithLowercaseMethod()
{
$path = '/foo';
$callable = function ($req, $res) {
// Do something
};
$app = new App($this->getResponseFactory());
$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 1a63671

Please sign in to comment.