diff options
author | louise <louise> | 2009-09-02 08:31:26 +0000 |
---|---|---|
committer | louise <louise> | 2009-09-02 08:31:26 +0000 |
commit | e6e851d1678dde40703ae63864dd5f4cfff5cbda (patch) | |
tree | afc75f34fee84a52258dda5f8b9715fdc5d5e8ad /t/Cobrand.t | |
parent | 122ab601e674c06915e481cc66e0dad92495a41a (diff) |
Change params for set_lang_and_domain
Diffstat (limited to 't/Cobrand.t')
-rwxr-xr-x | t/Cobrand.t | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/t/Cobrand.t b/t/Cobrand.t index 5d00cfa03..fab80e3d2 100755 --- a/t/Cobrand.t +++ b/t/Cobrand.t @@ -6,7 +6,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: louise@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: Cobrand.t,v 1.3 2009-08-31 09:56:11 louise Exp $ +# $Id: Cobrand.t,v 1.4 2009-09-02 08:32:23 louise Exp $ # use strict; @@ -35,12 +35,11 @@ sub test_site_restriction{ } sub test_cobrand_handle{ - my $q = new MockQuery('mysite'); - my $handle = Cobrand::cobrand_handle($q); + my $cobrand = 'mysite'; + my $handle = Cobrand::cobrand_handle($cobrand); like($handle->site_name(), qr/mysite/, 'should get a module handle if Util module exists for cobrand'); - - $q = new MockQuery('nosite'); - $handle = Cobrand::cobrand_handle($q); + $cobrand = 'nosite'; + $handle = Cobrand::cobrand_handle($cobrand); ok($handle == 0, 'should return zero if no module exists'); } |