public function RouteTest::testRoute in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/process/RouteTest.php \Drupal\Tests\migrate\Kernel\process\RouteTest::testRoute()
Tests Route plugin based on providerTestRoute() values.
@dataProvider providerTestRoute
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 38
Class
- RouteTest
- Tests the route process plugin.
Namespace
Drupal\Tests\migrate\Kernel\processCode
public function testRoute($value, $expected) {
$actual = $this
->doTransform($value);
$this
->assertSame($expected, $actual);
}