public function WorkbenchPreprocessTest::routeNodeProvider in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/WorkbenchPreprocessTest.php \Drupal\Tests\workbench_moderation\Unit\WorkbenchPreprocessTest::routeNodeProvider()
Route node provider.
File
- tests/
src/ Unit/ WorkbenchPreprocessTest.php, line 31
Class
- WorkbenchPreprocessTest
- Class WorkbenchPreprocessTest.
Namespace
Drupal\Tests\workbench_moderation\UnitCode
public function routeNodeProvider() {
return [
[
'entity.node.cannonical',
1,
1,
FALSE,
'Not on the latest version tab route.',
],
[
'entity.node.latest_version',
1,
1,
TRUE,
'On the latest version tab route, with the route node.',
],
[
'entity.node.latest_version',
1,
2,
FALSE,
'On the latest version tab route, with a different node.',
],
];
}