From 00ed8e3e62bda025a82646c5b08152ca928de9a1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Feb 2010 17:28:38 +0000 Subject: [PATCH] - Patch #691938 by carlos8f, mr.baileys: block tests --- modules/block/tests/block_test.info | 8 ++++++++ modules/block/tests/block_test.module | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 modules/block/tests/block_test.info create mode 100644 modules/block/tests/block_test.module diff --git a/modules/block/tests/block_test.info b/modules/block/tests/block_test.info new file mode 100644 index 00000000000..3b9b80b2f11 --- /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 00000000000..b10994aaaf1 --- /dev/null +++ b/modules/block/tests/block_test.module @@ -0,0 +1,24 @@ + 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', '')); +}