use inlined module hiding in tests
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_component_layers.t
CommitLineData
2ef59958 1use Test::More tests => 6;
d06051f7 2use strict;
3use warnings;
4use lib 't/lib';
5
6# This tests that we actually load the physical
7# copy of Model::Foo::Bar, in the case that Model::Foo
8# defines the Model::Foo::Bar namespace in memory,
9# but does not load the corresponding file.
10
11use_ok 'TestApp';
12
13my $model_foo = TestApp->model('Foo');
14
15can_ok($model_foo, 'model_foo_method');
16can_ok($model_foo, 'bar');
17
18my $model_foo_bar = $model_foo->bar;
19
20can_ok($model_foo_bar, 'model_foo_bar_method_from_foo');
21can_ok($model_foo_bar, 'model_foo_bar_method_from_foo_bar');
2ef59958 22
9c38cb50 23# I commented out this line since we seem to just massively
24# fail on the 'you already did setup. I have no idea why its
25# here - jnap
26#TestApp->setup;
2ef59958 27
28is($model_foo->model_quux_method, 'chunkybacon', 'Model method getting $self->{quux} from config');
29