protected function TranslationormalizerTest::setUp in Default Content for D8 2.0.x
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ TranslationNormalizerTest.php, line 46
Class
- TranslationormalizerTest
- Tests export functionality.
Namespace
Drupal\Tests\default_content\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
// Create a node type with a paragraphs field.
NodeType::create([
'type' => 'page',
'name' => 'page',
])
->save();
$this
->installConfig([
'language',
]);
ConfigurableLanguage::createFromLangcode('de')
->save();
ConfigurableLanguage::createFromLangcode('fr')
->save();
}