diff --git a/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationTest.php b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationTest.php index 90ac157..3831a3d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Installer/InstallerTranslationTest.php @@ -11,14 +11,14 @@ use Drupal\system\Tests\InstallerTest; /** - * Tests installer translation detection. + * Tests the installer translation detection. */ class InstallerTranslationTest extends InstallerTest { public static function getInfo() { return array( - 'name' => 'Installer translation tests', - 'description' => "Tests the installation UI's translations.", + 'name' => 'Installer translation test', + 'description' => 'Selects German as the installation language and verifies the following page is not in English.', 'group' => 'Installer', ); } @@ -85,13 +85,18 @@ protected function setUp() { // Submit the installer with German language. $this->drupalPost($GLOBALS['base_url'] . '/core/install.php', array('langcode' => 'de'), 'Save and continue'); - // On the following page where installation profile is being selected, - // the interface should be already translated. - $this->assertNoText('Set up database', '"Set up database" string successfully translated.'); - $this->assertNoText('Save and continue', '"Save and continue" string successfully translated.'); + // On the following page where installation profile is being selected the + // interface should be already translated, so there is no Save and continue + // button text anymore. + $this->assertNoText('Save and continue', '"Save and continue" string was not found.'); - // Get the "Save and continue" submit button translated value from - // the translated interface. + // After this assertion all we needed to test is tested, but the test + // expects the installation to succeed. If the test would finish here, an + // exception would occur. That's why the full installation has to be + // finished in the further steps. + + // Get the "Save and continue" submit button translated value from the + // translated interface. $submit_value = (string) current($this->xpath('//input[@type="submit"]/@value')); // Submit the minimal profile installation.