function ConfigTranslationUiTestBase::setSiteInformation
Same name in other branches
- 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTestBase.php \Drupal\Tests\config_translation\Functional\ConfigTranslationUiTestBase::setSiteInformation()
Sets site name and slogan for default language, helps in tests.
Parameters
string $site_name: The site name.
string $site_slogan: The site slogan.
2 calls to ConfigTranslationUiTestBase::setSiteInformation()
- ConfigTranslationUiSiteInformationTest::testSiteInformationTranslationUi in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationUiSiteInformationTest.php - Tests the site information translation interface.
- ConfigTranslationUiSiteInformationTest::testSourceValueDuplicateSave in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationUiSiteInformationTest.php - Tests the site information translation interface.
File
-
core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationUiTestBase.php, line 165
Class
- ConfigTranslationUiTestBase
- Translate settings and entities to various languages.
Namespace
Drupal\Tests\config_translation\FunctionalCode
protected function setSiteInformation($site_name, $site_slogan) {
$edit = [
'site_name' => $site_name,
'site_slogan' => $site_slogan,
];
$this->drupalGet('admin/config/system/site-information');
$this->submitForm($edit, 'Save configuration');
$this->assertSession()
->pageTextContains('The configuration options have been saved.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.