function PermissionsPerBundleTest::setUp

Same name in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php \Drupal\KernelTests\Core\Recipe\PermissionsPerBundleTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php, line 51

Class

PermissionsPerBundleTest
@covers \Drupal\Core\Config\Action\Plugin\ConfigAction\PermissionsPerBundle @covers \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\PermissionsPerBundleDeriver

Namespace

Drupal\KernelTests\Core\Recipe

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig('node');
    $this->createRole([], 'super_editor');
    $this->createContentType([
        'type' => 'article',
    ]);
    $this->createContentType([
        'type' => 'blog',
    ]);
    $this->createContentType([
        'type' => 'landing_page',
    ]);
    $this->createMediaType('test', [
        'id' => 'beautiful',
    ]);
    $this->createMediaType('test', [
        'id' => 'controversial',
    ]);
    $this->createMediaType('test', [
        'id' => 'special',
    ]);
    $this->createVocabulary([
        'vid' => 'tags',
    ]);
    $this->createVocabulary([
        'vid' => 'categories',
    ]);
}

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