You are here

protected function UpdatePostUpdateFailingTest::doSelectionTest in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdatePostUpdateFailingTest::doSelectionTest()

Tests the selection page.

Overrides UpdatePathTestTrait::doSelectionTest

File

core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php, line 69

Class

UpdatePostUpdateFailingTest
Tests hook_post_update() when there are failing update hooks.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

protected function doSelectionTest() {

  // First update, should not be run since this module's update hooks fail.
  $this
    ->assertSession()
    ->responseContains('8001 - This update will fail.');
  $this
    ->assertSession()
    ->responseContains('8002 - A further update');
  $this
    ->assertSession()
    ->assertEscaped("First update, should not be run since this module's update hooks fail.");
}