You are here

protected function EntityConverterLatestRevisionTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php \Drupal\KernelTests\Core\ParamConverter\EntityConverterLatestRevisionTest::setUp()
  2. 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\ParamConverter

Code

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();
}