diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php index 64ea797..2370c1a 100644 --- a/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php +++ b/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php @@ -125,7 +125,7 @@ public function testConfigTranslation() { $this->assertFalse($string, 'Configuration strings have been created upon installation.'); // Enable the image module. - $this->drupalPostForm('admin/modules', array('modules[Field types][image][enable]' => "1"), t('Save configuration')); + $this->drupalPostForm('admin/modules', array('modules[Field Types][image][enable]' => "1"), t('Save configuration')); $this->rebuildContainer(); $string = $this->storage->findString(array('source' => 'Medium (220×220)', 'context' => '', 'type' => 'configuration')); diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php index 7f3a66f..3ef613c 100644 --- a/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php +++ b/core/modules/system/src/Tests/Installer/InstallerTranslationTest.php @@ -66,7 +66,7 @@ public function testInstaller() { $this->assertEqual($account->language()->getId(), 'de', 'New user is German.'); // Ensure that we can enable basic_auth on a non-english site. - $this->drupalPostForm('admin/modules', array('modules[Web services][basic_auth][enable]' => TRUE), t('Save configuration')); + $this->drupalPostForm('admin/modules', array('modules[Web Services][basic_auth][enable]' => TRUE), t('Save configuration')); $this->assertResponse(200); // Assert that the theme CSS was added to the page. diff --git a/core/modules/system/src/Tests/Module/InstallUninstallTest.php b/core/modules/system/src/Tests/Module/InstallUninstallTest.php index 125b754..aa04033 100644 --- a/core/modules/system/src/Tests/Module/InstallUninstallTest.php +++ b/core/modules/system/src/Tests/Module/InstallUninstallTest.php @@ -75,7 +75,7 @@ public function testInstallUninstall() { // Install the module. $edit = array(); - $package = $module->info['package']; + $package = ucwords($module->info['package']); $edit["modules[$package][$name][enable]"] = TRUE; $this->drupalPostForm('admin/modules', $edit, t('Save configuration')); @@ -136,7 +136,7 @@ public function testInstallUninstall() { // any errors. $edit = array(); foreach ($all_modules as $name => $module) { - $edit['modules[' . $module->info['package'] . '][' . $name . '][enable]'] = TRUE; + $edit['modules[' . ucwords($module->info['package']) . '][' . $name . '][enable]'] = TRUE; } $this->drupalPostForm('admin/modules', $edit, t('Save configuration')); $this->assertText(t('The configuration options have been saved.'), 'Modules status has been updated.');