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/field/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\field\Kernel\ConfigActionsTest::setUp()
  4. 11.x core/modules/contact/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\contact\Kernel\ConfigActionsTest::setUp()
  5. 11.x core/modules/node/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\node\Kernel\ConfigActionsTest::setUp()
  6. 11.x core/modules/image/tests/src/Kernel/ConfigActionsTest.php \Drupal\Tests\image\Kernel\ConfigActionsTest::setUp()

Overrides KernelTestBase::setUp

File

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

Class

ConfigActionsTest
@covers \Drupal\block\Plugin\ConfigAction\PlaceBlock @covers \Drupal\block\Plugin\ConfigAction\PlaceBlockDeriver @group block

Namespace

Drupal\Tests\block\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->container
        ->get(ThemeInstallerInterface::class)
        ->install([
        'olivero',
        'claro',
        'umami',
    ]);
    $this->config('system.theme')
        ->set('default', 'olivero')
        ->set('admin', 'claro')
        ->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.