X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_plugin.t;h=03d16f62f932c6bf000aaa1de3a4b1168532dea5;hb=1be0c4f8966328b3d90c5ebf82f924d97a15dfd9;hp=93d08d85de530d57dc20d0ea5a0b961b4d91ef0e;hpb=7e114dd4e51f7554e3a52292ba53a39e926f4c10;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_plugin.t b/t/unit_core_plugin.t index 93d08d8..03d16f6 100644 --- a/t/unit_core_plugin.t +++ b/t/unit_core_plugin.t @@ -21,6 +21,9 @@ my $warnings = 0; use PluginTestApp; my $logger = Class::MOP::Class->create_anon_class( methods => { + error => sub {0}, + debug => sub {0}, + info => sub {0}, warn => sub { if ($_[1] =~ /plugin method is deprecated/) { $warnings++; @@ -40,6 +43,8 @@ is( $warnings, 0, 'no warnings' ); # for Catalyst 5.9 ok( get("/run_time_plugins"), "get ok" ); +local $ENV{CATALYST_DEBUG} = 0; + is( $warnings, 1, '1 warning' ); use_ok 'TestApp'; @@ -56,3 +61,4 @@ my @expected = qw( # Faux::Plugin is no longer reported is_deeply [ TestApp->registered_plugins ], \@expected, 'registered_plugins() should only report the plugins for the current class'; +