X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChildOf%2FFoo.pm;h=d75f45a9e334e5e3f7342008658d40a372b7a5be;hp=ffba0b3d3291b8451da0b3bcdd2468dbe2814d70;hb=09461385e3f0f62cbf3a95a71d00f71e1a42ca75;hpb=141459fa3fc9852fd6f05138caddb410bbe2949c diff --git a/t/lib/TestApp/Controller/Action/ChildOf/Foo.pm b/t/lib/TestApp/Controller/Action/ChildOf/Foo.pm index ffba0b3..d75f45a 100644 --- a/t/lib/TestApp/Controller/Action/ChildOf/Foo.pm +++ b/t/lib/TestApp/Controller/Action/ChildOf/Foo.pm @@ -5,6 +5,24 @@ use warnings; use base qw/Catalyst::Controller/; -sub spoon :PathPart :ChildOf('') :Args(0) { } +# +# Child of current namespace +# +sub spoon :ChildOf('') :Args(0) { } + +# +# Root for a action in a "parent" controller +# +sub higher_root :PathPart('childof/higher_root') :ChildOf('/') :Captures(1) { } + +# +# Parent controller -> this subcontroller -> parent controller test +# +sub pcp2 :ChildOf('/action/childof/pcp1') :Captures(1) { } + +# +# Controllers not in parent/child relation. This tests the end. +# +sub cross2 :PathPart('end') :ChildOf('/action/childof/bar/cross1') :Args(1) { } 1;