protected function SplitMergeTest::setUp in Configuration Split 8
Same name and namespace in other branches
- 2.0.x tests/src/Kernel/SplitMergeTest.php \Drupal\Tests\config_split\Kernel\SplitMergeTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ SplitMergeTest.php, line 48
Class
- SplitMergeTest
- Test the splitting and merging.
Namespace
Drupal\Tests\config_split\KernelCode
protected function setUp() : void {
parent::setUp();
// Make sure there is a good amount of config to play with.
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
// The module config_test has translations and config_exclude_test has
// config with dependencies.
$this
->installConfig([
'system',
'field',
'config_test',
'config_exclude_test',
]);
// Set up multilingual.
ConfigurableLanguage::createFromLangcode('fr')
->save();
ConfigurableLanguage::createFromLangcode('de')
->save();
}