summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/field_test.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-22 08:44:04 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-22 08:44:04 +0000
commit29addd06b26192f0d3e1761e7e13b291baf7c5a1 (patch)
treebd0241978398249914c776d1f949cab6b34fed46 /modules/simpletest/tests/field_test.module
parenta4b833b6deb353d28ad51f9c648061bd0a83c950 (diff)
downloadbrdo-29addd06b26192f0d3e1761e7e13b291baf7c5a1.tar.gz
brdo-29addd06b26192f0d3e1761e7e13b291baf7c5a1.tar.bz2
- Patch #569364 by bjaspan, yched: handle failures on field storage creation.
Diffstat (limited to 'modules/simpletest/tests/field_test.module')
-rw-r--r--modules/simpletest/tests/field_test.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module
index 642d7878e..a83d8dff3 100644
--- a/modules/simpletest/tests/field_test.module
+++ b/modules/simpletest/tests/field_test.module
@@ -714,3 +714,13 @@ function field_test_field_delete($obj_type, $object, $field, $instance, $items)
$args = func_get_args();
field_test_memorize(__FUNCTION__, $args);
}
+
+/**
+ *
+ * 'Field storage' API.
+ *
+ */
+
+function field_test_field_storage_create_field($field) {
+ throw new Exception('field_test storage module always fails to create fields');
+}