summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-28 17:28:38 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-28 17:28:38 +0000
commit00ed8e3e62bda025a82646c5b08152ca928de9a1 (patch)
tree03dc68055762f390ee11672befca244f7b587e61
parent0c363d2268014a001895ee2b468831cbba02f8d1 (diff)
downloadbrdo-00ed8e3e62bda025a82646c5b08152ca928de9a1.tar.gz
brdo-00ed8e3e62bda025a82646c5b08152ca928de9a1.tar.bz2
- Patch #691938 by carlos8f, mr.baileys: block tests
-rw-r--r--modules/block/tests/block_test.info8
-rw-r--r--modules/block/tests/block_test.module24
2 files changed, 32 insertions, 0 deletions
diff --git a/modules/block/tests/block_test.info b/modules/block/tests/block_test.info
new file mode 100644
index 000000000..3b9b80b2f
--- /dev/null
+++ b/modules/block/tests/block_test.info
@@ -0,0 +1,8 @@
+; $Id$
+name = Block test
+description = Provides test blocks.
+package = Testing
+version = VERSION
+core = 7.x
+files[] = block_test.module
+hidden = TRUE
diff --git a/modules/block/tests/block_test.module b/modules/block/tests/block_test.module
new file mode 100644
index 000000000..b10994aaa
--- /dev/null
+++ b/modules/block/tests/block_test.module
@@ -0,0 +1,24 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Provide test blocks.
+ */
+
+/**
+ * Implements hook_block_info().
+ */
+function block_test_block_info() {
+ $blocks['test_cache'] = array(
+ 'info' => t('Test block caching'),
+ );
+ return $blocks;
+}
+
+/**
+ * Implements hook_block_view().
+ */
+function block_test_block_view($delta = 0) {
+ return array('content' => variable_get('block_test_content', ''));
+}