function RouteTest::testRoute

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Kernel/process/RouteTest.php \Drupal\Tests\migrate\Kernel\process\RouteTest::testRoute()
  2. 10 core/modules/migrate/tests/src/Kernel/process/RouteTest.php \Drupal\Tests\migrate\Kernel\process\RouteTest::testRoute()
  3. 11.x 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 40

Class

RouteTest
Tests the route process plugin.

Namespace

Drupal\Tests\migrate\Kernel\process

Code

public function testRoute($value, $expected) {
    $actual = $this->doTransform($value);
    $this->assertSame($expected, $actual);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.