public function PathUtilityTest::testGetPlaceholders in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Utility/ Path/ Drupal7/ PathUtilityTest.php, line 103
Class
- PathUtilityTest
- @group DMU.Utility.Path
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal7Code
public function testGetPlaceholders() {
$placeholders = $this->path
->getPlaceholders();
$this
->assertCount(1, $placeholders);
$this
->assertInstanceOf('Drupal\\drupalmoduleupgrader\\Utility\\Path\\Drupal7\\PathComponent', $placeholders
->first());
$this
->assertEquals('%', $placeholders
->first()
->__toString());
}