X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FDump.pm;h=fcbdc5eea3e8dc5ca8334cb776d684e366b11071;hb=a0a66cb803a6ba6c0920c487e9c5d7fa148b7ec3;hp=0a259e95657fbef2af3ea1976d310afb405aca2d;hpb=dd4e6fd2152eea9f5b0c1f559575ced7684ef257;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Dump.pm b/t/lib/TestApp/Controller/Dump.pm index 0a259e9..fcbdc5e 100644 --- a/t/lib/TestApp/Controller/Dump.pm +++ b/t/lib/TestApp/Controller/Dump.pm @@ -1,20 +1,22 @@ package TestApp::Controller::Dump; use strict; -use base 'Catalyst::Base'; +use base 'Catalyst::Controller'; sub default : Action Private { my ( $self, $c ) = @_; $c->forward('TestApp::View::Dump'); } -sub parameters : Action Relative { +sub env : Action Relative { my ( $self, $c ) = @_; - $c->forward('TestApp::View::Dump::Parameters'); + $c->forward('TestApp::View::Dump::Env'); } sub request : Action Relative { my ( $self, $c ) = @_; + $c->req->params(undef); # Should be a no-op, and be ignored. + # Back compat test for 5.7 $c->forward('TestApp::View::Dump::Request'); } @@ -23,4 +25,9 @@ sub response : Action Relative { $c->forward('TestApp::View::Dump::Response'); } +sub body : Action Relative { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Body'); +} + 1;