Skip to content
Snippets Groups Projects
Commit d143bfcd authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3233124 by phenaproxima, tedbow, rkoller: Test that update status is...

Issue #3233124 by phenaproxima, tedbow, rkoller: Test that update status is cleared after an update is applied
parent 501c91e6
No related branches found
No related tags found
1 merge request!42Issue #3233124: Clear update status after an update is applied
...@@ -134,6 +134,12 @@ class CoreUpdateTest extends UpdateTestBase { ...@@ -134,6 +134,12 @@ class CoreUpdateTest extends UpdateTestBase {
* Asserts that Drupal core was successfully updated. * Asserts that Drupal core was successfully updated.
*/ */
private function assertUpdateSuccessful(): void { private function assertUpdateSuccessful(): void {
// The update form should not have any available updates.
// @todo Figure out why this assertion fails when the batch processor
// redirects directly to the update form, instead of update.status, when
// updating via the UI.
$this->visit('/admin/modules/automatic-update');
$this->getMink()->assertSession()->pageTextContains('No update available');
// The status page should report that we're running Drupal 9.8.1. // The status page should report that we're running Drupal 9.8.1.
$this->assertCoreVersion('9.8.1'); $this->assertCoreVersion('9.8.1');
// The fake placeholder text from ::getConfigurationForUpdate() should be // The fake placeholder text from ::getConfigurationForUpdate() should be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment