You are here

public function EntityRevisionParamConverterTest::testNonApplyingRoute in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::testNonApplyingRoute()

@covers ::applies

File

core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php, line 52

Class

EntityRevisionParamConverterTest
@coversDefaultClass \Drupal\Core\ParamConverter\EntityRevisionParamConverter @group entity

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function testNonApplyingRoute() {
  $route = new Route('/test');
  $this
    ->assertFalse($this->converter
    ->applies([], 'test_revision', $route));
}