function ModerationInformationTest::isDefaultRevisionPublishedTestCases

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php \Drupal\Tests\content_moderation\Kernel\ModerationInformationTest::isDefaultRevisionPublishedTestCases()
  2. 8.9.x core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php \Drupal\Tests\content_moderation\Kernel\ModerationInformationTest::isDefaultRevisionPublishedTestCases()
  3. 11.x core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php \Drupal\Tests\content_moderation\Kernel\ModerationInformationTest::isDefaultRevisionPublishedTestCases()

Test cases for ::testIsDefaultRevisionPublished.

File

core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php, line 102

Class

ModerationInformationTest
@coversDefaultClass \Drupal\content_moderation\ModerationInformation[[api-linebreak]] @group content_moderation

Namespace

Drupal\Tests\content_moderation\Kernel

Code

public static function isDefaultRevisionPublishedTestCases() {
  return [
    'Draft to draft' => [
      'draft',
      'draft',
      FALSE,
      FALSE,
    ],
    'Draft to published' => [
      'draft',
      'published',
      FALSE,
      TRUE,
    ],
    'Published to published' => [
      'published',
      'published',
      TRUE,
      TRUE,
    ],
    'Published to draft' => [
      'published',
      'draft',
      TRUE,
      TRUE,
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.