protected function ConfigTranslationUiTest::setSiteInformation in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php \Drupal\config_translation\Tests\ConfigTranslationUiTest::setSiteInformation()
Sets site name and slogan for default language, helps in tests.
Parameters
string $site_name:
string $site_slogan:
2 calls to ConfigTranslationUiTest::setSiteInformation()
- ConfigTranslationUiTest::testSiteInformationTranslationUi in core/
modules/ config_translation/ src/ Tests/ ConfigTranslationUiTest.php - Tests the site information translation interface.
- ConfigTranslationUiTest::testSourceValueDuplicateSave in core/
modules/ config_translation/ src/ Tests/ ConfigTranslationUiTest.php - Tests the site information translation interface.
File
- core/
modules/ config_translation/ src/ Tests/ ConfigTranslationUiTest.php, line 1006 - Contains \Drupal\config_translation\Tests\ConfigTranslationUiTest.
Class
- ConfigTranslationUiTest
- Translate settings and entities to various languages.
Namespace
Drupal\config_translation\TestsCode
protected function setSiteInformation($site_name, $site_slogan) {
$edit = array(
'site_name' => $site_name,
'site_slogan' => $site_slogan,
);
$this
->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
$this
->assertRaw(t('The configuration options have been saved.'));
}