Skip to content

Commit

Permalink
Add coverage for deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2017
1 parent bae1cc1 commit b6d499b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/TestCase/Routing/Route/RouteTest.php
Expand Up @@ -237,6 +237,23 @@ public function testNoMatchParseExtension($url, array $ext)
$this->assertNull($outExt);
}

/**
* Expects extensions to be set
*
* @group deprecated
* @return void
*/
public function testExtensions()
{
$this->deprecated(function () {
$route = new RouteProtected('/:controller/:action/*', []);
$this->assertEquals([], $route->extensions());
$route->extensions(['xml']);

$this->assertEquals(['xml'], $route->extensions());
});
}

/**
* Expects extensions to be set
*
Expand Down

0 comments on commit b6d499b

Please sign in to comment.