X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FAction.pm;h=6cee5f5ccbea8bb1f24efc7803a0797bc9188f72;hb=7d81af7e1358baaee20d748f36b85791378c30ae;hp=5049427a5a3b33265c30b1249f45cdab964a1a93;hpb=5d8129e9b7bea385dd6fda9b490e7923f61eedd0;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Action.pm b/t/lib/TestApp/Controller/Action/Action.pm index 5049427..6cee5f5 100644 --- a/t/lib/TestApp/Controller/Action/Action.pm +++ b/t/lib/TestApp/Controller/Action/Action.pm @@ -3,7 +3,17 @@ package TestApp::Controller::Action::Action; use strict; use base 'TestApp::Controller::Action'; -__PACKAGE__->config( actions => { action_action_five => { ActionClass => '+Catalyst::Action::TestBefore' } } ); +__PACKAGE__->config( + actions => { + '*' => { extra_attribute => 13 }, + action_action_five => { ActionClass => '+Catalyst::Action::TestBefore' }, + action_action_eight => { another_extra_attribute => 'foo' }, + }, + action_args => { + '*' => { extra_arg => 42 }, + action_action_seven => { another_extra_arg => 23 }, + }, +); sub action_action_one : Global : ActionClass('TestBefore') { my ( $self, $c ) = @_; @@ -38,4 +48,14 @@ sub action_action_six : Global : ActionClass('~TestMyAction') { $c->forward('TestApp::View::Dump::Request'); } +sub action_action_seven : Global : ActionClass('~TestExtraArgsAction') { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Request'); +} + +sub action_action_eight : Global { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Action'); +} + 1;