You are here

public function RouteTest::testCondition in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/RouteTest.php \Symfony\Component\Routing\Tests\RouteTest::testCondition()

File

vendor/symfony/routing/Tests/RouteTest.php, line 210

Class

RouteTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testCondition() {
  $route = new Route('/');
  $this
    ->assertSame('', $route
    ->getCondition());
  $route
    ->setCondition('context.getMethod() == "GET"');
  $this
    ->assertSame('context.getMethod() == "GET"', $route
    ->getCondition());
}