function ModerationStateBlockTest::getAdministratorPermissions

1 call to ModerationStateBlockTest::getAdministratorPermissions()
ModerationStateBlockTest::testCustomBlockModeration in core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php
Tests moderating content blocks.

File

core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php, line 25

Class

ModerationStateBlockTest
Tests general content moderation workflow for blocks.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function getAdministratorPermissions() : array {
    return array_merge($this->permissions, [
        'administer blocks',
        'administer block content',
    ]);
}

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