8 eval { require DateTime::Format::SQLite };
9 plan $@ ? ( skip_all => 'Requires DateTime::Format::SQLite' )
12 my $schema = DBICTest->init_schema(
13 no_deploy => 1, # Deploying would cause an early rebless
17 ref $schema->storage, 'DBIx::Class::Storage::DBI',
18 'Starting with generic storage'
21 # Calling date_time_parser should cause the storage to be reblessed,
22 # so that we can pick up datetime_parser_type from subclasses
24 my $parser = $schema->storage->datetime_parser();
26 is($parser, 'DateTime::Format::SQLite', 'Got expected storage-set datetime_parser');
27 isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage');