public function PathUtilityTest::testContains in Drupal 7 to 8/9 Module Upgrader 8
Same name in this branch
- 8 tests/src/Unit/Utility/Path/Drupal7/PathUtilityTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal7\PathUtilityTest::testContains()
- 8 tests/src/Unit/Utility/Path/Drupal8/PathUtilityTest.php \Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal8\PathUtilityTest::testContains()
File
- tests/
src/ Unit/ Utility/ Path/ Drupal8/ PathUtilityTest.php, line 57
Class
- PathUtilityTest
- @group DMU.Utility.Path
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Path\Drupal8Code
public function testContains() {
$this
->assertTrue($this->path
->contains('{node}'));
$this
->assertFalse($this->path
->contains('fruit'));
}