You are here

public function ModerationInformationTest::isDefaultRevisionPublishedTestCases in Drupal 9

Same name and namespace in other branches
  1. 8 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 100

Class

ModerationInformationTest
@coversDefaultClass \Drupal\content_moderation\ModerationInformation @group content_moderation

Namespace

Drupal\Tests\content_moderation\Kernel

Code

public 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,
    ],
  ];
}