private function RouteWrapperTest::getMockRouteWrapper in Drupal 7 to 8/9 Module Upgrader 8
8 calls to RouteWrapperTest::getMockRouteWrapper()
- RouteWrapperTest::testGetPath in tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php - RouteWrapperTest::testIsAbsoluteAccess in tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php - RouteWrapperTest::testIsContextualLink in tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php - RouteWrapperTest::testIsDefaultLocalTask in tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php - RouteWrapperTest::testIsLink in tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php
File
- tests/
src/ Unit/ Routing/ Drupal7/ RouteWrapperTest.php, line 13
Class
- RouteWrapperTest
- @group DMU.Routing
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7Code
private function getMockRouteWrapper() {
$route = [
'title' => 'List revisions',
'page callback' => 'diff_diffs_overview',
'type' => 'MENU_DEFAULT_LOCAL_TASK',
'access callback' => 'diff_node_revision_access',
'access arguments' => [
1,
],
'file' => 'diff.pages.inc',
];
return new RouteWrapper('node/%node/revisions/list', $route);
}