You are here

public function RouteWrapperTest::testGetPath in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 tests/src/Unit/Routing/Drupal7/RouteWrapperTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7\RouteWrapperTest::testGetPath()
  2. 8 tests/src/Unit/Routing/Drupal8/RouteWrapperTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal8\RouteWrapperTest::testGetPath()

File

tests/src/Unit/Routing/Drupal7/RouteWrapperTest.php, line 29

Class

RouteWrapperTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7

Code

public function testGetPath() {
  $wrapper = $this
    ->getMockRouteWrapper();
  $this
    ->assertInstanceOf('\\Drupal\\drupalmoduleupgrader\\Utility\\Path\\Drupal7\\PathUtility', $wrapper
    ->getPath());
  $this
    ->assertEquals('node/%node/revisions/list', $wrapper
    ->getPath());
}