function ConfigActionsTest::setUp

Overrides KernelTestBase::setUp

File

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

Class

ConfigActionsTest
Tests Config Actions.

Namespace

Drupal\Tests\field\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('entity_test');
  $this->installEntitySchema('entity_test_with_bundle');
  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.