Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / tests / resources / modules / d8 / woot / woot.post_update.php
diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/woot.post_update.php b/vendor/drush/drush/tests/resources/modules/d8/woot/woot.post_update.php
deleted file mode 100644 (file)
index e9e3b02..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-/**
- * Successful post-update.
- */
-function woot_post_update_a()
-{
-    // Note that this is called 'a' so that it will run first. The post-updates
-    // are executed in alphabetical order.
-    return t('This is the update message from woot_post_update_a');
-}
-
-/**
- * Failing post-update.
- */
-function woot_post_update_failing()
-{
-    throw new \Exception('This is the exception message thrown in woot_post_update_failing');
-}
-
-/**
- * Install the Devel module.
- */
-function woot_post_update_install_devel()
-{
-    \Drupal::service('module_installer')->install(['devel']);
-}
-
-/**
- * Renders some content.
- */
-function woot_post_update_render()
-{
-    // This post-update function allows us to test that all Drupal modules are
-    // fully loaded when the updates are being performed. The renderer will
-    // throw an exception if this is not the case.
-    $render_array = [
-        '#theme' => 'item_list',
-        '#items' => ['a', 'b'],
-    ];
-    \Drupal::service('renderer')->renderPlain($render_array);
-}