function EntityRevisionParamConverterTest::testApplyingRoute

Tests applying route.

@legacy-covers ::applies

File

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

Class

EntityRevisionParamConverterTest
Tests Drupal\Core\ParamConverter\EntityRevisionParamConverter.

Namespace

Drupal\Tests\Core\ParamConverter

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.