You are here

public function PathUtilityTest::testGetParent in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 tests/src/Unit/Utility/Path/Drupal7/PathUtilityTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal7\PathUtilityTest::testGetParent()
  2. 8 tests/src/Unit/Utility/Path/Drupal8/PathUtilityTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal8\PathUtilityTest::testGetParent()

File

tests/src/Unit/Utility/Path/Drupal8/PathUtilityTest.php, line 87

Class

PathUtilityTest
@group DMU.Utility.Path

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal8

Code

public function testGetParent() {
  $this
    ->assertEquals('node/{node}/foo', $this->path
    ->getParent()
    ->__toString());
}