You are here

protected function EntityConverterLatestRevisionTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php \Drupal\KernelTests\Core\ParamConverter\EntityConverterLatestRevisionTest::setUp()

Overrides KernelTestBase::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() {
  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();
}