Version 1
[yaffs-website] / web / core / modules / config / tests / config_import_test / config_import_test.module
diff --git a/web/core/modules/config/tests/config_import_test/config_import_test.module b/web/core/modules/config/tests/config_import_test/config_import_test.module
new file mode 100644 (file)
index 0000000..6ec1d93
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Provides configuration import test helpers.
+ */
+
+/**
+ * Implements hook_config_import_steps_alter().
+ */
+function config_import_test_config_import_steps_alter(&$sync_steps) {
+  $sync_steps[] = '_config_import_test_config_import_steps_alter';
+}
+
+/**
+ * Implements configuration synchronization step added by an alter for testing.
+ *
+ * @param array $context
+ *   The batch context.
+ */
+function _config_import_test_config_import_steps_alter(&$context) {
+  $GLOBALS['hook_config_test']['config_import_steps_alter'] = TRUE;
+  $context['finished'] = 1;
+  return;
+}