aboutsummaryrefslogtreecommitdiffstats
path: root/t/Cobrands/Mysite/Util.pm
diff options
context:
space:
mode:
authormatthew <matthew>2009-12-16 12:43:12 +0000
committermatthew <matthew>2009-12-16 12:43:12 +0000
commit009adcb0cf2e3d56df0daed103301248018a11f8 (patch)
treed6309a31c7dae8ec365048dc856affec3180b014 /t/Cobrands/Mysite/Util.pm
parentb6acf6c339b2ea00258567acd5e93f88c6023777 (diff)
Add test for recent().
Diffstat (limited to 't/Cobrands/Mysite/Util.pm')
-rw-r--r--t/Cobrands/Mysite/Util.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/Cobrands/Mysite/Util.pm b/t/Cobrands/Mysite/Util.pm
index aadf1edd9..8aedd2c8c 100644
--- a/t/Cobrands/Mysite/Util.pm
+++ b/t/Cobrands/Mysite/Util.pm
@@ -7,7 +7,7 @@
# Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved.
# Email: louise@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: Util.pm,v 1.19 2009-10-20 11:55:51 louise Exp $
+# $Id: Util.pm,v 1.20 2009-12-16 12:43:13 matthew Exp $
package Cobrands::Mysite::Util;
use Page;
@@ -102,4 +102,12 @@ sub allow_photo_display {
sub council_check {
return 0;
}
+
+sub recent {
+ return [
+ { id => 1, title => 'Title 1' },
+ { id => 2, title => 'Title 2' }
+ ];
+}
+
1;