You are here

private function UpdaterFormTest::deleteStagedUpdate in Automatic Updates 8.2

Deletes a staged, failed update.

1 call to UpdaterFormTest::deleteStagedUpdate()
UpdaterFormTest::testUpdateErrors in tests/src/Functional/UpdaterFormTest.php
Tests handling of errors and warnings during the update process.

File

tests/src/Functional/UpdaterFormTest.php, line 238

Class

UpdaterFormTest
@covers \Drupal\automatic_updates\Form\UpdaterForm

Namespace

Drupal\Tests\automatic_updates\Functional

Code

private function deleteStagedUpdate() : void {
  $session = $this
    ->getSession();
  $session
    ->getPage()
    ->pressButton('Delete existing update');
  $this
    ->assertSession()
    ->pageTextContains('Staged update deleted');
  $session
    ->reload();
}