public function ContentAwareGeneratorTest::testSupports

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ContentAwareGeneratorTest.php, line 343

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));
}