public function TranslationTest::setUp in Entity Print 8.2
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ TranslationTest.php, line 35
Class
- TranslationTest
- @coversDefaultClass \Drupal\entity_print\PrintBuilder @group entity_print
Namespace
Drupal\Tests\entity_print\KernelCode
public function setUp() : void {
parent::setUp();
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installSchema('node', [
'node_access',
]);
$this
->installConfig([
'system',
'filter',
]);
$this->container
->get('theme_installer')
->install([
'stark',
]);
$node_type = NodeType::create([
'name' => 'Page',
'type' => 'page',
]);
$node_type
->setDisplaySubmitted(FALSE);
$node_type
->save();
ConfigurableLanguage::createFromLangcode('de')
->save();
ConfigurableLanguage::createFromLangcode('en')
->save();
$this->container
->get('language_manager')
->reset();
}