function ContentModerationStateTest::moderationWithSpecialLanguagesTestCases

Same name in other branches
  1. 8.9.x core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateTest::moderationWithSpecialLanguagesTestCases()
  2. 10 core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateTest::moderationWithSpecialLanguagesTestCases()
  3. 11.x core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateTest::moderationWithSpecialLanguagesTestCases()

Test cases for ::testModerationWithSpecialLanguages().

File

core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php, line 477

Class

ContentModerationStateTest
Tests links between a content entity and a content_moderation_state entity.

Namespace

Drupal\Tests\content_moderation\Kernel

Code

public function moderationWithSpecialLanguagesTestCases() {
    return [
        'Not specified to not specified' => [
            LanguageInterface::LANGCODE_NOT_SPECIFIED,
            LanguageInterface::LANGCODE_NOT_SPECIFIED,
        ],
        'English to not specified' => [
            'en',
            LanguageInterface::LANGCODE_NOT_SPECIFIED,
        ],
        'Not specified to english' => [
            LanguageInterface::LANGCODE_NOT_SPECIFIED,
            'en',
        ],
    ];
}

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