You are here

public function ContentAwareGeneratorTest::testSupports in Zircon Profile 8

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

File

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

Class

ContentAwareGeneratorTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function testSupports() {
  $this
    ->assertTrue($this->generator
    ->supports(''));
  $this
    ->assertTrue($this->generator
    ->supports(null));
  $this
    ->assertTrue($this->generator
    ->supports($this->contentDocument));
  $this
    ->assertFalse($this->generator
    ->supports($this));
}