install(['claro']); \Drupal::configFactory()->getEditable('system.theme') ->set('admin', 'claro') ->save(TRUE); // Place various blocks. $settings = [ 'theme' => 'claro', 'region' => 'help', ]; $this->placeBlock('help_block', $settings); $this->placeBlock('local_tasks_block', $settings); $this->placeBlock('local_actions_block', $settings); $this->placeBlock('page_title_block', $settings); // Create user. $this->drupalLogin($this->createUser([ 'access help pages', 'view the administration theme', 'administer permissions', ])); } /** * {@inheritdoc} */ protected function installParameters() { $parameters = parent::installParameters(); // Install in German. This will ensure the language and locale modules are // installed. $parameters['parameters']['langcode'] = 'de'; // Create a po file so we don't attempt to download one from // localize.drupal.org and to have a test translation that will not change. \Drupal::service('file_system')->mkdir($this->publicFilesDirectory . '/translations', NULL, TRUE); $contents = <<publicFilesDirectory . "/translations/drupal-{$version}.de.po", $contents); return $parameters; } }