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:
Tobias Schultze 2015-01-13 16:05:34 +01:00
commit 1d8fc92dbe
1 changed files with 2 additions and 2 deletions

View File

@ -204,9 +204,9 @@ class RouteTest extends \PHPUnit_Framework_TestCase
public function testCondition()
{
$route = new Route('/');
$this->assertEquals(null, $route->getCondition());
$this->assertSame('', $route->getCondition());
$route->setCondition('context.getMethod() == "GET"');
$this->assertEquals('context.getMethod() == "GET"', $route->getCondition());
$this->assertSame('context.getMethod() == "GET"', $route->getCondition());
}
public function testCompile()