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 => {} );
my $authenticated;
$c->mock( set_authenticated => sub { $authenticated = $_[1] } );
+$c->mock( logout => sub { undef $authenticated } );
can_ok( $m, "setup" );