You are here

public function ContentAwareGeneratorTest::testGetRouteDebugMessage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\ContentAwareGeneratorTest::testGetRouteDebugMessage()

File

vendor/symfony-cmf/routing/Tests/Routing/ContentAwareGeneratorTest.php, line 426

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testGetRouteDebugMessage() {
  $this
    ->assertContains('/some/content', $this->generator
    ->getRouteDebugMessage(null, array(
    'content_id' => '/some/content',
  )));
  $this
    ->assertContains('Route aware content Symfony\\Cmf\\Component\\Routing\\Tests\\Routing\\RouteAware', $this->generator
    ->getRouteDebugMessage(new RouteAware()));
  $this
    ->assertContains('/some/content', $this->generator
    ->getRouteDebugMessage('/some/content'));
}