You are here

public function PathComponentTest::testPathComponent in Drupal 7 to 8/9 Module Upgrader 8

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

File

tests/src/Unit/Utility/Path/Drupal8/PathComponentTest.php, line 13

Class

PathComponentTest
@group DMU.Utility.Path

Namespace

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

Code

public function testPathComponent() {
  $wildcard = new PathComponent('{node}');
  $this
    ->assertTrue($wildcard
    ->isWildcard());
  $this
    ->assertEquals('{node}', $wildcard
    ->__toString());
}