function ContentTranslationPermissionsTest::setUp

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Kernel/ContentTranslationPermissionsTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationPermissionsTest::setUp()
  2. 10 core/modules/content_translation/tests/src/Kernel/ContentTranslationPermissionsTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationPermissionsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_translation/tests/src/Kernel/ContentTranslationPermissionsTest.php, line 27

Class

ContentTranslationPermissionsTest
Tests the content translation dynamic permissions.

Namespace

Drupal\Tests\content_translation\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('entity_test_mul');
    $this->installEntitySchema('entity_test_mul_with_bundle');
    EntityTestMulBundle::create([
        'id' => 'test',
        'label' => 'Test label',
        'description' => 'My test description',
    ])->save();
}

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