function UpdatePostUpdateFailingTest::doSelectionTest
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdatePostUpdateFailingTest::doSelectionTest()
- 10 core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdatePostUpdateFailingTest::doSelectionTest()
- 11.x core/modules/system/tests/src/Functional/UpdateSystem/UpdatePostUpdateFailingTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdatePostUpdateFailingTest::doSelectionTest()
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\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.