function LocaleTranslatedSchemaDefinitionTest::setUp
Overrides BrowserTestBase::setUp
File
- 
              core/
modules/ locale/ tests/ src/ Functional/ LocaleTranslatedSchemaDefinitionTest.php, line 39  
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.