Version 1
[yaffs-website] / web / core / modules / system / tests / modules / update_test_failing / update_test_failing.post_update.php
diff --git a/web/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php b/web/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
new file mode 100644 (file)
index 0000000..12b60f6
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Post update functions for test module.
+ */
+
+/**
+ * First update, should not be run since this module's update hooks fail.
+ */
+function update_test_failing_post_update_first() {
+  $execution = \Drupal::state()->get('post_update_test_execution', []);
+  $execution[] = __FUNCTION__;
+  \Drupal::state()->set('post_update_test_execution', $execution);
+}