X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestAppCustomContainer%2FModel%2FBar.pm;h=1c92392c1acbdde69e738387afe9c2115cc7c643;hb=df0d84419ff21493fe7afd477f0201ce5590fdf1;hp=86dcfd2eebb7dc63d66c39ac10c6075b0d1e21af;hpb=2c77a89427930786f5dd14924e66764e7e7f3016;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestAppCustomContainer/Model/Bar.pm b/t/lib/TestAppCustomContainer/Model/Bar.pm index 86dcfd2..1c92392 100644 --- a/t/lib/TestAppCustomContainer/Model/Bar.pm +++ b/t/lib/TestAppCustomContainer/Model/Bar.pm @@ -4,6 +4,12 @@ extends 'Catalyst::Model'; with 'TestAppCustomContainer::Role::HoldsFoo', 'TestAppCustomContainer::Role::ACCEPT_CONTEXT'; +sub BUILD { + my ( $self ) = @_; + + $self->foo->inc_bar_got_it; +} + __PACKAGE__->meta->make_immutable; no Moose;