update_test_failing.install in Zircon Profile 8
Same filename and directory in other branches
Contains a failing update hook for testing the update system.
File
core/modules/system/tests/modules/update_test_failing/update_test_failing.installView source
<?php
/**
* @file
* Contains a failing update hook for testing the update system.
*/
use Drupal\Core\Utility\UpdateException;
/**
* This update will fail.
*/
function update_test_failing_update_8001() {
throw new UpdateException('This update hook is failing.');
}
/**
* A further update.
*/
function update_test_failing_update_8002() {
// This hook won't ever run.
}
Functions
Name | Description |
---|---|
update_test_failing_update_8001 | This update will fail. |
update_test_failing_update_8002 | A further update. |