function ConfigActionsTest::setUp

Same name in this branch
  1. 11.x core/modules/media/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\media\Kernel\ConfigActionsTest::setUp()
  2. 11.x core/modules/language/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\language\Kernel\ConfigActionsTest::setUp()
  3. 11.x core/modules/contact/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\contact\Kernel\ConfigActionsTest::setUp()
  4. 11.x core/modules/node/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\node\Kernel\ConfigActionsTest::setUp()
  5. 11.x core/modules/image/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\image\Kernel\ConfigActionsTest::setUp()
  6. 11.x core/modules/block/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\block\Kernel\ConfigActionsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/ConfigActionsTest.php, line 28

Class

ConfigActionsTest
@group field

Namespace

Drupal\Tests\field\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    EntityTestBundle::create([
        'id' => 'test',
        'label' => $this->randomString(),
    ])
        ->save();
    $this->configActionManager = $this->container
        ->get('plugin.manager.config_action');
}

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