You are here

public function ParameterBindingTest::testGetValueNoArgument in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Routing/ParameterBindingTest.php, line 104

Class

ParameterBindingTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing

Code

public function testGetValueNoArgument() {
  $reflection = new \ReflectionClass($this->parameter);
  $property = $reflection
    ->getProperty('value');
  $property
    ->setAccessible(TRUE);
  $property
    ->setValue($this->parameter, StringNode::fromValue('har'));
  $path = new PathUtility('foo/%node');
  $binding = new ParameterBinding($path, $this->parameter);
  $this
    ->assertEquals('har', $binding
    ->getValue());
}