finalize_errors is in Context now (t/aggregate/live_component_controller_action_go...
[catagits/Catalyst-Runtime.git] / t / lib / TestApp.pm
1 package TestApp;
2
3 use strict;
4 use Catalyst qw/
5     Test::MangleDollarUnderScore
6     Test::Errors 
7     Test::Headers 
8     Test::Plugin
9     Test::Inline
10     +TestApp::Plugin::FullyQualified
11     +TestApp::Plugin::AddDispatchTypes
12     +TestApp::Role
13 /;
14 use Catalyst::Utils;
15 use TestApp::Context;
16
17 use Moose;
18 use namespace::autoclean;
19
20 our $VERSION = '0.01';
21
22 TestApp->config( name => 'TestApp', root => '/some/dir' );
23
24 TestApp->context_class( 'TestApp::Context' );
25 TestApp->setup;
26
27 {
28     no warnings 'redefine';
29     sub Catalyst::Log::error { }
30 }
31
32 # Make sure we can load Inline plugins. 
33
34 package Catalyst::Plugin::Test::Inline;
35
36 use strict;
37
38 use base qw/Class::Data::Inheritable/;
39
40 1;