PathComponentTest.php in Drupal 7 to 8/9 Module Upgrader 8
File
tests/src/Unit/Utility/Path/Drupal8/PathComponentTest.phpView source
<?php
namespace Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal8;
use Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathComponent;
use Drupal\Tests\UnitTestCase;
/**
* @group DMU.Utility.Path
*/
class PathComponentTest extends UnitTestCase {
public function testPathComponent() {
$wildcard = new PathComponent('{node}');
$this
->assertTrue($wildcard
->isWildcard());
$this
->assertEquals('{node}', $wildcard
->__toString());
}
}
Classes
Name | Description |
---|---|
PathComponentTest | @group DMU.Utility.Path |