public function RouteTest::testRouteWithParamQuery in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/process/RouteTest.php \Drupal\Tests\migrate\Kernel\process\RouteTest::testRouteWithParamQuery()
- 9 core/modules/migrate/tests/src/Kernel/process/RouteTest.php \Drupal\Tests\migrate\Kernel\process\RouteTest::testRouteWithParamQuery()
Tests Route plugin based on providerTestRoute() values.
@dataProvider providerTestRouteWithParamQuery
Parameters
mixed $value: Input value for the Route process plugin.
array $expected: The expected results from the Route transform process.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ process/ RouteTest.php, line 201
Class
- RouteTest
- Tests the route process plugin.
Namespace
Drupal\Tests\migrate\Kernel\processCode
public function testRouteWithParamQuery($value, $expected) {
// Create a user so that user/1/edit is a valid path.
$this
->setUpCurrentUser();
$this
->installConfig([
'user',
]);
$actual = $this
->doTransform($value);
$this
->assertSame($expected, $actual);
}