Make Moose components collaberate with non-Moose Catalyst
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Forward.pm
index c6be731..d3ed612 100644 (file)
@@ -56,6 +56,12 @@ sub with_method_and_args : Local {
     $c->forward( qw/TestApp::Controller::Action::Forward args/, [qq/new/] );
     $c->res->body( $c->req->args->[0] );
 }
+sub to_action_object : Local {
+    my ( $self, $c ) = @_;
+    $c->forward($self->action_for('embed'), [qw/mtfnpy/]);
+}
+
 
 sub args : Local {
     my ( $self, $c, $val ) = @_;
@@ -85,4 +91,9 @@ sub class_forward_test_action : Local {
     $c->forward(qw/TestApp class_forward_test_method/);
 }
 
+sub forward_to_uri_check : Local {
+    my ( $self, $c ) = @_;
+    $c->forward( 'Action::ForwardTo', 'uri_check' );
+}
+
 1;