Fix text indention
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Inheritance.pm
index 7a27561..9d9fa45 100644 (file)
@@ -3,6 +3,11 @@ package TestApp::Controller::Action::Inheritance;
 use strict;
 use base 'TestApp::Controller::Action';
 
+sub auto : Private {
+    my ( $self, $c ) = @_;
+    return 1;
+}
+
 sub begin : Private {
     my ( $self, $c ) = @_;
     $self->SUPER::begin($c);
@@ -22,6 +27,11 @@ package TestApp::Controller::Action::Inheritance::A;
 use strict;
 use base 'TestApp::Controller::Action';
 
+sub auto : Private {
+    my ( $self, $c ) = @_;
+    return 1;
+}
+
 sub begin : Private {
     my ( $self, $c ) = @_;
     $self->SUPER::begin($c);
@@ -41,6 +51,11 @@ package TestApp::Controller::Action::Inheritance::A::B;
 use strict;
 use base 'TestApp::Controller::Action';
 
+sub auto : Private {
+    my ( $self, $c ) = @_;
+    return 1;
+}
+
 sub begin : Private {
     my ( $self, $c ) = @_;
     $self->SUPER::begin($c);
@@ -55,5 +70,17 @@ sub end : Private {
     my ( $self, $c ) = @_;
 }
 
+package TestApp::Controller::Action::Inheritance::B;
+
+use strict;
+use base 'TestApp::Controller::Action';
+
+# check configuration for an inherited action
+__PACKAGE__->config(
+    action => {
+        begin => {}
+    }
+);
+
 1;