Fix overspecified msaccess test optdep (should not include icdt)
[dbsrgits/DBIx-Class.git] / t / inflate / datetime_determine_parser.t
CommitLineData
cb551b07 1use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_dt_sqlite';
2
05e8dc0a 3use strict;
68de9438 4use warnings;
05e8dc0a 5
6use Test::More;
7use lib qw(t/lib);
8use DBICTest;
9
05e8dc0a 10my $schema = DBICTest->init_schema(
11 no_deploy => 1, # Deploying would cause an early rebless
12);
13
14is(
15 ref $schema->storage, 'DBIx::Class::Storage::DBI',
16 'Starting with generic storage'
17);
18
19# Calling date_time_parser should cause the storage to be reblessed,
20# so that we can pick up datetime_parser_type from subclasses
21
22my $parser = $schema->storage->datetime_parser();
23
40f75181 24is($parser, 'DateTime::Format::SQLite', 'Got expected storage-set datetime_parser');
05e8dc0a 25isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage');
26
68de9438 27done_testing;