You are here

public function EntityRevisionRouteEnhancerTest::testAppliesWithNoneRevisionParameters in Entity API 8.0

@covers ::applies

File

tests/src/Unit/RouteEnhancer/EntityRevisionRouteEnhancerTest.php, line 48
Contains \Drupal\Tests\Unit\RouteEnhancer\EntityRevisionRouteEnhancerTest.

Class

EntityRevisionRouteEnhancerTest
@coversDefaultClass \Drupal\entity\RouteEnhancer\EntityRevisionRouteEnhancer @group entity

Namespace

Drupal\Tests\Unit\RouteEnhancer

Code

public function testAppliesWithNoneRevisionParameters() {
  $route = new Route('/test-path/{entity_test}', [], [], [
    'parameters' => [
      'entity_test' => [
        'type' => 'entity:entity_test',
      ],
    ],
  ]);
  $this
    ->assertFalse($this->routeEnhancer
    ->applies($route));
}