function LinkUriTest::testNotRouted
Same name in other branches
- 8.9.x core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::testNotRouted()
- 10 core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::testNotRouted()
- 11.x core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::testNotRouted()
Tests that Non routed URLs throws an exception.
@dataProvider providerTestNotRouted
Parameters
string $value: The value to pass to LinkUri::transform().
string $exception_message: The expected exception message.
File
-
core/
modules/ menu_link_content/ tests/ src/ Kernel/ Plugin/ migrate/ process/ LinkUriTest.php, line 93
Class
Namespace
Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\processCode
public function testNotRouted($value, $exception_message) {
$this->expectException(MigrateException::class);
$this->expectExceptionMessage($exception_message);
$this->doTransform($value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.