function ContentTranslationRevisionTranslationDeletionTest::testOverview

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationRevisionTranslationDeletionTest::testOverview()
  2. 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationRevisionTranslationDeletionTest::testOverview()
  3. 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationRevisionTranslationDeletionTest::testOverview()

Tests that translation overview handles pending revisions correctly.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php, line 34

Class

ContentTranslationRevisionTranslationDeletionTest
Tests that revision translation deletion is handled correctly.

Namespace

Drupal\Tests\content_translation\Functional

Code

public function testOverview() : void {
    $index = 1;
    $accounts = [
        $this->rootUser,
        $this->editor,
        $this->translator,
    ];
    foreach ($accounts as $account) {
        $this->currentAccount = $account;
        $this->doTestOverview($index++);
    }
}

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