function ContentModerationStateTest::testContentModerationStateDataRemoval

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

Tests removal of content moderation state entity.

1 method overrides ContentModerationStateTest::testContentModerationStateDataRemoval()
WorkspacesContentModerationStateTest::testContentModerationStateDataRemoval in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Tests removal of content moderation state entity.

File

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

Class

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

Namespace

Drupal\Tests\content_moderation\Kernel

Code

public function testContentModerationStateDataRemoval() : void {
    foreach (static::basicModerationTestCases() as $case) {
        [
            $entity_type_id,
        ] = $case;
        $this->doTestContentModerationStateDataRemoval($entity_type_id);
    }
}

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