public function ContentPreprocessTest::routeNodeProvider in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php \Drupal\Tests\content_moderation\Unit\ContentPreprocessTest::routeNodeProvider()
 
Data provider for self::testIsLatestVersionPage().
File
- core/
modules/ content_moderation/ tests/ src/ Unit/ ContentPreprocessTest.php, line 30  
Class
- ContentPreprocessTest
 - @coversDefaultClass \Drupal\content_moderation\ContentPreprocess
 
Namespace
Drupal\Tests\content_moderation\UnitCode
public function routeNodeProvider() {
  return [
    [
      'entity.node.canonical',
      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.',
    ],
  ];
}