Create branch register_actions.
[catagits/Catalyst-Runtime.git] / t / unit_core_component_mro.t
CommitLineData
ae29b412 1use Test::More tests => 1;
2use strict;
3use warnings;
4
5{
6 package MyApp::Component;
7 use Test::More;
8
9 sub COMPONENT {
10 fail 'This no longer gets dispatched to';
11 }
12
13 package MyApp::MyComponent;
14
15 use base 'Catalyst::Component', 'MyApp::Component';
16
17}
18
19my $warn = '';
20{
21 local $SIG{__WARN__} = sub {
22 $warn .= $_[0];
23 };
24 MyApp::MyComponent->COMPONENT('MyApp');
25}
26
27like($warn, qr/after Catalyst::Component in MyApp::Component/,
28 'correct warning thrown');
29