You are here

public function EntityRevisionParamConverterTest::testApplyingRoute in Entity API 8.0

@covers ::applies

File

tests/src/Unit/ParamConverter/EntityRevisionParamConverterTest.php, line 67
Contains \Drupal\Tests\entity\Unit\ParamConverter\EntityRevisionParamConverterTest.

Class

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

Namespace

Drupal\Tests\entity\Unit\ParamConverter

Code

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