X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FSessionTestApp%2FController%2FRoot.pm;h=36033be80dfedef1729a0e29e66a7d15bce33975;hb=a491a59b1e8a50488d73847d878f587888e8c033;hp=948adc662ae65dd6855ee598a6e68ffea5e6e21e;hpb=1c4a1a43bb6963966510c709a8457ffcc4b6eff5;p=catagits%2FCatalyst-Plugin-Session.git diff --git a/t/lib/SessionTestApp/Controller/Root.pm b/t/lib/SessionTestApp/Controller/Root.pm index 948adc6..36033be 100644 --- a/t/lib/SessionTestApp/Controller/Root.pm +++ b/t/lib/SessionTestApp/Controller/Root.pm @@ -67,4 +67,25 @@ sub user_agent : Global { $c->res->output('UA=' . $c->req->user_agent); } +sub accessor_test : Global { + my ( $self, $c ) = @_; + + $c->session( + one => 1, + two => 2, + ); + + $c->session( { + three => 3, + four => 4, + }, + ); + + $c->session->{five} = 5; + + for my $key (keys %{ $c->session }) { + $c->res->write("$key: " . $c->session->{$key} . "\n"); + } +} + 1;