Silence C3::Adopt::NEXT warnings in the test suite.
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Plugin.pm
index cc6178d..7758bb7 100644 (file)
@@ -1,12 +1,13 @@
 package Catalyst::Plugin::Test::Plugin;
 
 use strict;
-use NEXT;
 
 use base qw/Catalyst::Base Class::Data::Inheritable/;
 
  __PACKAGE__->mk_classdata('ran_setup');
 
+no warnings 'Class::C3::Adopt::NEXT';
+
 sub setup {
    my $c = shift;
    $c->ran_setup('1');
@@ -16,6 +17,9 @@ sub  prepare {
 
     my $class = shift;
 
+# Note: This use of NEXT is deliberately left here to ensure back
+#       compat, as NEXT always used to be loaded, but is now replaced
+#       by Class::C3::Adopt::NEXT.
     my $c = $class->NEXT::prepare(@_);
     $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );