switched CDBICompat::AttributeAPI to using 'real' methods
[dbsrgits/DBIx-Class.git] / t / 89inflate_datetime.t
CommitLineData
ae515736 1use strict;
2use warnings;
3
4use Test::More;
5use lib qw(t/lib);
6use DBICTest;
7
8my $schema = DBICTest->init_schema();
9
10eval { require DateTime::Format::MySQL };
11plan skip_all => "Need DateTime::Format::MySQL for inflation tests" if $@;
12
13plan tests => 2;
14
15# inflation test
16my $event = $schema->resultset("Event")->find(1);
17
18isa_ok($event->starts_at, 'DateTime', 'DateTime returned');
19
20is($event->starts_at, '2006-04-25T22:24:33', 'Correct date/time');
21