Switch to catalyst_component_name
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Action / TestMyAction.pm
index 66bcdf9..1240b0e 100644 (file)
@@ -9,7 +9,10 @@ sub execute {
     my $self = shift;
     my ( $controller, $c, $test ) = @_;
     $c->res->header( 'X-TestAppActionTestMyAction', 'MyAction works' );
-    $self->NEXT::execute(@_);
+    $c->res->header( 'X-Component-Name-Action', $controller->catalyst_component_name);
+    $c->res->header( 'X-Component-Instance-Name-Action', ref($controller));
+    $c->res->header( 'X-Class-In-Action', $self->class);
+    $self->next::method(@_);
 }
 
 1;