stop using Moo as a test package
[catagits/Catalyst-Runtime.git] / t / lib / TestAppPluginWithConstructor.pm
CommitLineData
6a8f85af 1# See t/plugin_new_method_backcompat.t
2package TestAppPluginWithConstructor;
bca6bdad 3use Test::More;
2a56ace9 4use Test::Fatal;
6a8f85af 5use Catalyst qw/+TestPluginWithConstructor/;
6use Moose;
2c64bc24 7extends qw/Catalyst/;
6a8f85af 8
6a8f85af 9__PACKAGE__->setup;
10our $MODIFIER_FIRED = 0;
11
2a56ace9 12is exception {
6a8f85af 13 before 'dispatch' => sub { $MODIFIER_FIRED = 1 }
2a56ace9 14}, undef, 'Can apply method modifier';
6a8f85af 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