Skip to content
Snippets Groups Projects

Issue #3276645: Run readiness checks after stored results have been cleared in certain situations

Merged Issue #3276645: Run readiness checks after stored results have been cleared in certain situations
2 unresolved threads
2 unresolved threads
Compare and
2 files
+ 9
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -73,6 +73,7 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
'administer site configuration',
'administer software updates',
'access site in maintenance mode',
'access administration pages',
]);
// We need this fixture as only projects installed via composer will show up
// on the form.
@@ -194,7 +195,7 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
// 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</li><li>Automatic Updates Theme With Updates</li></ul>', $warning_messages->getHtml());
TestSubscriber1::setTestResult([ValidationResult::createError(['Error before continue.'])], StatusCheckEvent::class);
$page->pressButton('Continue');
$this->checkForMetaRefresh();
$assert_session->addressEquals('/admin/reports/updates');
@@ -212,6 +213,10 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$this->assertNotEmpty($pre_apply_time);
$this->assertNotEmpty($post_apply_time);
$this->assertNotSame($pre_apply_time, $post_apply_time);
$this->drupalGet('/admin');
$this->checkForMetaRefresh();
$assert_session->pageTextContains('Error before continue.');
$assert_session->pageTextNotContains('Your site has not recently run an update readiness check. Run readiness checks now.');
}
/**
Loading