X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp.pm;h=058084f63d79b9fb07b5ebfb15ce2504a3672b5c;hb=083ee5d9a198ffee958dd54179c7352e6dc13c11;hp=a46ecb1304cb4728fdb44e80001e6ac3c1f14da5;hpb=f3414019f472b55682ef3af53f761b6db7955887;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm index a46ecb1..058084f 100644 --- a/t/lib/TestApp.pm +++ b/t/lib/TestApp.pm @@ -7,6 +7,7 @@ use Catalyst qw/ Test::Plugin Test::Inline +TestApp::Plugin::FullyQualified + +TestApp::Plugin::AddDispatchTypes /; use Catalyst::Utils; @@ -61,7 +62,7 @@ sub execute { sub finalize_error { my $c = shift; - $c->NEXT::finalize_error(@_); + $c->next::method(@_); $c->res->status(500); $c->res->body( 'FATAL ERROR: ' . join( ', ', @{ $c->error } ) ); @@ -72,6 +73,16 @@ sub class_forward_test_method :Private { $c->response->headers->header( 'X-Class-Forward-Test-Method' => 1 ); } +sub class_go_test_method :Private { + my ( $self, $c ) = @_; + $c->response->headers->header( 'X-Class-Go-Test-Method' => 1 ); +} + +sub class_visit_test_method :Private { + my ( $self, $c ) = @_; + $c->response->headers->header( 'X-Class-Visit-Test-Method' => 1 ); +} + sub loop_test : Local { my ( $self, $c ) = @_;