6 use Test::More tests => 7;
9 my $m; BEGIN { use_ok($m = "Catalyst::Plugin::Authentication::User") }
15 sub new { bless {}, shift };
17 sub supported_features {
21 unsupported_subfeature => 0,
28 my $o = SomeUser->new;
30 can_ok( $m, "supports" );
32 ok( $o->supports("top_level"), "simple top level feature check");
33 ok( $o->supports(qw/feature subfeature/), "traversal");
34 ok( !$o->supports(qw/feature unsupported_subfeature/), "traversal terminating in false");
37 $o->supports("bad_key");
38 } "cant check for non existent feature";
41 $o->supports(qw/bad_key subfeature/)
42 } "but can't traverse into one";