minor #13399 [Routing] fix misleading test for condition (Tobion)
This PR was merged into the 2.5 branch.
Discussion
----------
[Routing] fix misleading test for condition
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
d687a88
[Routing] fix misleading test for condition
This commit is contained in:
commit
1d8fc92dbe
@ -204,9 +204,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testCondition()
|
public function testCondition()
|
||||||
{
|
{
|
||||||
$route = new Route('/');
|
$route = new Route('/');
|
||||||
$this->assertEquals(null, $route->getCondition());
|
$this->assertSame('', $route->getCondition());
|
||||||
$route->setCondition('context.getMethod() == "GET"');
|
$route->setCondition('context.getMethod() == "GET"');
|
||||||
$this->assertEquals('context.getMethod() == "GET"', $route->getCondition());
|
$this->assertSame('context.getMethod() == "GET"', $route->getCondition());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCompile()
|
public function testCompile()
|
||||||
|
Reference in New Issue
Block a user