You are here

protected function ConfigTranslationUiTest::setSiteInformation in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationUiTest::setSiteInformation()
  2. 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php \Drupal\Tests\config_translation\Functional\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/tests/src/Functional/ConfigTranslationUiTest.php
Tests the site information translation interface.
ConfigTranslationUiTest::testSourceValueDuplicateSave in core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
Tests the site information translation interface.

File

core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php, line 1117

Class

ConfigTranslationUiTest
Translate settings and entities to various languages.

Namespace

Drupal\Tests\config_translation\Functional

Code

protected function setSiteInformation($site_name, $site_slogan) {
  $edit = [
    '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.'));
}