Skip to content
Snippets Groups Projects

Issue #3312619: Fix various incorrect @param values for $messages

3 files
+ 19
7
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -167,7 +167,7 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
}
/**
* Tests an update that has no errors or special conditions.anager.Drupal\Tests\package_manager\Kernel\StagedDBUpdateValidatorTes
* Tests an update that has no errors or special conditions.anager.Drupal\Tests\package_manager\Kernel\StagedDBUpdateValidatorTes.
*
* @param bool $maintenance_mode_on
* Whether maintenance should be on at the beginning of the update.
@@ -196,7 +196,11 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$this->checkForUpdates();
$state = $this->container->get('state');
$state->set('system.maintenance_mode', $maintenance_mode_on);
StagedDatabaseUpdateValidator::setExtensionsWithUpdates(['system', 'automatic_updates_theme_with_updates']);
StagedDatabaseUpdateValidator::setExtensionsWithUpdates(
[
'system' => 1,
'automatic_updates_theme_with_updates' => 1,
]);
$page = $this->getSession()->getPage();
// Navigate to the automatic updates form.
@@ -226,7 +230,7 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
// Ensure that a list of pending database updates is visible, along with a
// short explanation, in the warning messages.
$warning_messages = $assert_session->elementExists('xpath', '//div[@data-drupal-messages]//div[@aria-label="Warning message"]');
$this->assertStringContainsString('Possible database updates have been detected in the following extensions.<ul><li>System (1 update)</li><li>Automatic Updates Theme With Updates</li></ul>', $warning_messages->getHtml());
$this->assertStringContainsString('Possible database updates have been detected in the following extensions.<ul><li>System (1 update)</li><li>Automatic Updates Theme With Updates (1 update)</li></ul>', $warning_messages->getHtml());
$page->pressButton('Continue');
$this->checkForMetaRefresh();
Loading