function GotoActionTest::providerGotoAction
Data provider for ::testGotoAction().
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Action/ GotoActionTest.php, line 63
Class
- GotoActionTest
- Tests Goto Action.
Namespace
Drupal\KernelTests\Core\ActionCode
public static function providerGotoAction() : array {
return [
'<front>' => [
'<front>',
'/',
],
'empty string' => [
'',
'/',
],
'internal path' => [
'/user',
'/user',
],
'internal path with query and fragment' => [
'/user?foo=bar#baz',
'/user?foo=bar#baz',
],
'external URL' => [
'https://example.com',
'https://example.com',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.