X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=f0c70bb1b9bc76cbee8fa9f28430722afa067eb0;hb=d7c20e945973f34456aed26b5ec5de2df551e2c6;hp=3164863a403fb5cdaf0425a857c4e84dd69106c2;hpb=209fb56bd9d1baa3021db6fafa2e0b438c58efef;p=catagits%2FCatalyst-Authentication-Credential-HTTP-Proxy.git diff --git a/t/basic.t b/t/basic.t index 3164863..f0c70bb 100644 --- a/t/basic.t +++ b/t/basic.t @@ -43,7 +43,7 @@ $tk->mock( my $store = Test::MockObject->new; $store->mock( get_user => - sub { shift; Catalyst::Plugin::Authentication::User::Hash->new(@_) } ); + sub { shift; Catalyst::Plugin::Authentication::User::Hash->new($_[2]) } ); my $c = Test::MockObject::Extends->new($m); $c->set_always( config => {} ); @@ -55,6 +55,7 @@ $c->set_false("debug"); my $authenticated; $c->mock( set_authenticated => sub { $authenticated = $_[1] } ); +$c->mock( logout => sub { undef $authenticated } ); can_ok( $m, "setup" );