You are here

public function EntityRevisionParamConverterTest::testApplyingRoute in Drupal 9

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

@covers ::applies

File

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

Class

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

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function testApplyingRoute() {
  $route = $this
    ->getTestRoute();
  $this
    ->assertTrue($this->converter
    ->applies($route
    ->getOption('parameters')['test_revision'], 'test_revision', $route));
}