You are here

protected function EntityRevisionParamConverterTest::getTestRoute in Entity API 8.0

2 calls to EntityRevisionParamConverterTest::getTestRoute()
EntityRevisionParamConverterTest::testApplyingRoute in tests/src/Unit/ParamConverter/EntityRevisionParamConverterTest.php
@covers ::applies
EntityRevisionParamConverterTest::testConvert in tests/src/Unit/ParamConverter/EntityRevisionParamConverterTest.php
@covers ::convert

File

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

Class

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

Namespace

Drupal\Tests\entity\Unit\ParamConverter

Code

protected function getTestRoute() {
  $route = new Route('/test/{test_revision}');
  $route
    ->setOption('parameters', [
    'test_revision' => [
      'type' => 'entity_revision:test',
    ],
  ]);
  return $route;
}