8 eval { require DateTime::Format::MySQL };
10 plan $@ ? ( skip_all => 'Requires DateTime::Format::MySQL' )
13 my $schema = DBICTest->init_schema(
14 no_deploy => 1, # Deploying would cause an early rebless
18 ref $schema->storage, 'DBIx::Class::Storage::DBI',
19 'Starting with generic storage'
22 # Calling date_time_parser should cause the storage to be reblessed,
23 # so that we can pick up datetime_parser_type from subclasses
25 my $parser = $schema->storage->datetime_parser();
27 # We're currently expecting a MySQL parser. May change in future.
28 is($parser, 'DateTime::Format::MySQL', 'Got expected datetime_parser');
30 isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage');