protected function LocaleTranslatedSchemaDefinitionTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php \Drupal\Tests\locale\Functional\LocaleTranslatedSchemaDefinitionTest::setUp()
- 9 core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php \Drupal\Tests\locale\Functional\LocaleTranslatedSchemaDefinitionTest::setUp()
File
- core/
modules/ locale/ tests/ src/ Functional/ LocaleTranslatedSchemaDefinitionTest.php, line 33
Class
- LocaleTranslatedSchemaDefinitionTest
- Adds and configures languages to check field schema definition.
Namespace
Drupal\Tests\locale\FunctionalCode
protected function setUp() : void {
parent::setUp();
ConfigurableLanguage::createFromLangcode('fr')
->save();
$this
->config('system.site')
->set('default_langcode', 'fr')
->save();
// Clear all caches so that the base field definition, its cache in the
// entity field manager, the t() cache, etc. are all cleared.
$this
->resetAll();
}