summaryrefslogtreecommitdiff
path: root/modules/node/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-02 20:47:54 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-02 20:47:54 +0000
commitf3c784ae4090883d12d768c50ff7445610f917db (patch)
tree6d01e0d75db522850d2ff2a57767837af28ec913 /modules/node/tests
parent3a35e28f923e887c0ef486753b6a926e4dee3662 (diff)
downloadbrdo-f3c784ae4090883d12d768c50ff7445610f917db.tar.gz
brdo-f3c784ae4090883d12d768c50ff7445610f917db.tar.bz2
- Patch #418760 by JamesAn: moving the test files to the test directory.
Diffstat (limited to 'modules/node/tests')
-rw-r--r--modules/node/tests/node_test.info8
-rw-r--r--modules/node/tests/node_test.module18
2 files changed, 26 insertions, 0 deletions
diff --git a/modules/node/tests/node_test.info b/modules/node/tests/node_test.info
new file mode 100644
index 000000000..2624f30c4
--- /dev/null
+++ b/modules/node/tests/node_test.info
@@ -0,0 +1,8 @@
+; $Id$
+name = "Node module tests"
+description = "Support module for node related testing."
+package = Testing
+version = VERSION
+core = 7.x
+files[] = node_test.module
+hidden = TRUE
diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module
new file mode 100644
index 000000000..d42172b6b
--- /dev/null
+++ b/modules/node/tests/node_test.module
@@ -0,0 +1,18 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Dummy module implementing node related hooks to test API interaction with
+ * the Node module.
+ */
+
+/**
+ * When the module is enabled, text will be added to all nodes in all build modes.
+ */
+function node_test_node_view($node, $teaser) {
+ $node->content['node_test_extra_field'] = array(
+ '#markup' => '<p>' . t('Extra test data added to node !nid.', array('!nid' => $node->nid)) . '</p>',
+ '#weight' => 10,
+ );
+}