You are here

protected function LocalActionsAndTasksConvertedIntoBlocksUpdateTest::setUp in Drupal 8

Overrides WebTestBase::setUp() for update testing.

The main difference in this method is that rather than performing the installation via the installer, a database is loaded. Additional work is then needed to set various things such as the config directories and the container that would normally be done via the installer.

Overrides UpdatePathTestBase::setUp

File

core/modules/system/tests/src/Functional/Update/LocalActionsAndTasksConvertedIntoBlocksUpdateTest.php, line 36

Class

LocalActionsAndTasksConvertedIntoBlocksUpdateTest
Tests the upgrade path for local actions/tasks being converted into blocks.

Namespace

Drupal\Tests\system\Functional\Update

Code

protected function setUp() {
  parent::setUp();

  /** @var \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler */
  $theme_handler = \Drupal::service('theme_handler');
  $theme_handler
    ->refreshInfo();
}