public function ParameterBindingTest::testGetValuePathPositionNotInPath in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Routing/ ParameterBindingTest.php, line 90
Class
- ParameterBindingTest
- @group DMU.Routing
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\RoutingCode
public function testGetValuePathPositionNotInPath() {
$path = new PathUtility('foo/%node');
$binding = new ParameterBinding($path, $this->parameter, 2);
$value = $binding
->getValue();
$this
->assertInstanceOf('\\Drupal\\drupalmoduleupgrader\\Utility\\Path\\PathComponentInterface', $value);
$this
->assertEquals('%', $value);
}