I don't think pushing to config is actually needed
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_container_applevel_config.t
CommitLineData
dcd60825 1#!perl
2
3use FindBin;
4use lib "$FindBin::Bin/../lib";
5
6use Test::More;
7use TestAppContainer;
8
9my $applevel_config = TestAppContainer->container->resolve(service => 'config')->{applevel_config};
10
11ok($applevel_config, 'applevel_config exists in the container');
12is($applevel_config, 'foo', 'and has the correct value');
13
14$applevel_config = TestAppContainer->config->{applevel_config};
15
16ok($applevel_config, 'applevel_config exists in the config accessor');
17is($applevel_config, 'foo', 'and has the correct value');
18
38957dfe 19my $home = TestAppContainer->container->resolve(service => 'config')->{home};
20ok( $home );
21
22$home = TestAppContainer->config->{home};
23ok( $home );
24
dcd60825 25done_testing;