Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / system / tests / modules / update_test_failing / update_test_failing.install
1 <?php
2
3 /**
4  * @file
5  * Contains a failing update hook for testing the update system.
6  */
7
8 use Drupal\Core\Utility\UpdateException;
9
10 /**
11  * This update will fail.
12  */
13 function update_test_failing_update_8001() {
14   throw new UpdateException('This update hook is failing.');
15 }
16
17 /**
18  * A further update.
19  */
20 function update_test_failing_update_8002() {
21   // This hook won't ever run.
22 }