1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2 use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_prettydebug';
11 BEGIN { delete @ENV{qw(DBIC_TRACE_PROFILE)} }
14 my $schema = DBICTest->init_schema;
16 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Statistics');
20 local $ENV{DBIC_TRACE_PROFILE} = 'console';
22 my $schema = DBICTest->init_schema;
24 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
25 is($schema->storage->debugobj->_sqlat->indent_string, ' ', 'indent string set correctly from console profile');
29 DBIx::Class::Optional::Dependencies->skip_without('config_file_reader' );
31 local $ENV{DBIC_TRACE_PROFILE} = './t/lib/awesome.json';
33 my $schema = DBICTest->init_schema;
35 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
36 is($schema->storage->debugobj->_sqlat->indent_string, 'frioux', 'indent string set correctly from file-based profile');