use strict;
use warnings;
-use Test::More tests => 3;
-use Test::NoWarnings; # Adds an extra test.
+use Test::More tests => 2;
BEGIN {
package MyApp::Controller::Foo;
sub config { {} };
}
-is(MyApp::Controller::Foo->action_namespace('Stub'), 'foo');
+is(MyApp::Controller::Foo->COMPONENT('MyApp')->action_namespace('Stub'), 'foo');
-is(MyApp::Controller::Root->action_namespace('Stub'), '');
+is(MyApp::Controller::Root->COMPONENT('MyApp')->action_namespace('Stub'), '');