More actions moved to root controllers.
[catagits/Catalyst-Runtime.git] / t / lib / TestAppPluginWithConstructor.pm
CommitLineData
6a8f85af 1# See t/plugin_new_method_backcompat.t
2package TestAppPluginWithConstructor;
bca6bdad 3use Test::More;
6a8f85af 4use Test::Exception;
5use Catalyst qw/+TestPluginWithConstructor/;
6use Moose;
7BEGIN { extends qw/Catalyst Catalyst::Controller/ } # Ewww, FIXME.
8
6a8f85af 9__PACKAGE__->setup;
10our $MODIFIER_FIRED = 0;
11
12lives_ok {
13 before 'dispatch' => sub { $MODIFIER_FIRED = 1 }
14} 'Can apply method modifier';
15no Moose;
16
bca6bdad 17our $IS_IMMUTABLE_YET = __PACKAGE__->meta->is_immutable;
18ok !$IS_IMMUTABLE_YET, 'I am not immutable yet';
19
6a8f85af 201;
21