protected function ConfigEntityTranslationTest::setUp in Acquia Content Hub 8.2
Throws
\Exception
Overrides ImportExportTestBase::setUp
File
- tests/
src/ Kernel/ ConfigEntityTranslationTest.php, line 68
Class
- ConfigEntityTranslationTest
- Tests that config entities are properly translated.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('acquia_contenthub_publisher', [
'acquia_contenthub_publisher_export_tracking',
]);
$this
->installEntitySchema('block_content');
$this
->installConfig([
'language',
'locale',
]);
$this
->installSchema('locale', [
'locales_source',
'locales_target',
'locales_location',
]);
$this
->installEntitySchema('view');
// Setup additional languages.
foreach ([
'be',
'ru',
] as $langcode) {
$language = ConfigurableLanguage::create([
'id' => $langcode,
'label' => $langcode,
]);
$language
->save();
}
// Install "Seven" theme for the block configuration test ($fixtures[2]).
\Drupal::service('theme_installer')
->install([
'seven',
]);
\Drupal::theme()
->setActiveTheme(\Drupal::service('theme.initialization')
->initTheme('seven'));
}