Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / tests / src / Unit / Utility / Path / Drupal7 / PathComponentTest.php
1 <?php
2
3 namespace Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal7;
4
5 use Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathComponent;
6 use Drupal\Tests\UnitTestCase;
7
8 /**
9  * @group DMU.Utility.Path
10  */
11 class PathComponentTest extends UnitTestCase {
12
13   public function testPathComponent() {
14     $placeholder = new PathComponent('%');
15     $this->assertTrue($placeholder->isPlaceholder());
16     $this->assertFalse($placeholder->isWildcard());
17     $this->assertEquals('%', $placeholder->__toString());
18
19     $wildcard = new PathComponent('%node');
20     $this->assertTrue($wildcard->isWildcard());
21     $this->assertFalse($wildcard->isPlaceholder());
22     $this->assertEquals('%node', $wildcard->__toString('%node'));
23   }
24
25 }