function ConfigurableLanguageValidationTest::setUp

Same name in other branches
  1. 10 core/modules/language/tests/src/Kernel/ConfigurableLanguageValidationTest.php \Drupal\Tests\language\Kernel\ConfigurableLanguageValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/language/tests/src/Kernel/ConfigurableLanguageValidationTest.php, line 25

Class

ConfigurableLanguageValidationTest
Tests validation of configurable_language entities.

Namespace

Drupal\Tests\language\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->entity = ConfigurableLanguage::createFromLangcode('fr');
    $this->entity
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.