function UpdatePostUpdateFailingTest::doSelectionTest
Tests the selection page.
Overrides UpdatePathTestTrait::doSelectionTest
File
-
core/
modules/ system/ tests/ src/ Functional/ UpdateSystem/ UpdatePostUpdateFailingTest.php, line 71
Class
- UpdatePostUpdateFailingTest
- Tests hook_post_update() when there are failing update hooks.
Namespace
Drupal\Tests\system\Functional\UpdateSystemCode
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.");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.