protected function EntityConverterLatestRevisionTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php \Drupal\KernelTests\Core\ParamConverter\EntityConverterLatestRevisionTest::setUp()
- 9 core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php \Drupal\KernelTests\Core\ParamConverter\EntityConverterLatestRevisionTest::setUp()
File
- core/
tests/ Drupal/ KernelTests/ Core/ ParamConverter/ EntityConverterLatestRevisionTest.php, line 43
Class
- EntityConverterLatestRevisionTest
- Tests the entity converter when the "load_latest_revision" flag is set.
Namespace
Drupal\KernelTests\Core\ParamConverterCode
protected function setUp() : void {
parent::setUp();
$this
->setUpCurrentUser();
$this
->installEntitySchema('entity_test_mulrev');
$this
->installEntitySchema('entity_test');
$this
->installConfig([
'system',
'language',
]);
$this->converter = $this->container
->get('paramconverter.entity');
ConfigurableLanguage::createFromLangcode('de')
->save();
}