diff --git a/core/modules/system/src/Tests/Module/InstallUninstallTest.php b/core/modules/system/src/Tests/Module/InstallUninstallTest.php index 26319a1..035f811 100644 --- a/core/modules/system/src/Tests/Module/InstallUninstallTest.php +++ b/core/modules/system/src/Tests/Module/InstallUninstallTest.php @@ -8,6 +8,7 @@ namespace Drupal\system\Tests\Module; use Drupal\Component\Render\FormattableMarkup; +use Drupal\Core\StringTranslation\TranslatableMarkup; use Drupal\Core\Logger\RfcLogLevel; /** @@ -79,7 +80,6 @@ public function testInstallUninstall() { // Go through each module in the list and try to install and uninstall // it with its dependencies. while (list($name, $module) = each($all_modules)) { - debug("It's going to install: " . $name); $was_installed_list = \Drupal::moduleHandler()->getModuleList(); // Start a list of modules that we expect to be installed this time. @@ -233,7 +233,7 @@ protected function assertSuccessfulUninstall($module, $package = 'Core') { $edit['uninstall[' . $module . ']'] = TRUE; $this->drupalPostForm('admin/modules/uninstall', $edit, 'Uninstall'); $this->drupalPostForm(NULL, NULL, 'Uninstall'); - $this->assertText(('The selected modules have been uninstalled.'), 'Modules status has been updated.'); + $this->assertText(new TranslatableMarkup('The selected modules have been uninstalled.'), 'Modules status has been updated.'); $this->assertModules(array($module), FALSE); // Check that the appropriate hook was fired and the appropriate log