remove NEXT usage from TestApp.pm
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / lib / TestApp.pm
index 15482b7..7f6873c 100644 (file)
@@ -3,6 +3,8 @@ package TestApp;
 use strict;
 use warnings;
 
+use MRO::Compat;
+
 use Catalyst qw/ConfigLoader/;
 
 our $VERSION = '0.01';
@@ -12,7 +14,7 @@ __PACKAGE__->setup;
 sub finalize_config {
     my $c = shift;
     $c->config( foo => 'bar' );
-    $c->NEXT::finalize_config;
+    $c->next::method();
 }
 
 sub appconfig : Local {