10 eval "use DBD::SQLite";
12 ? ( skip_all => 'needs DBD::SQLite for testing' )
16 my $schema = DBICTest->init_schema(no_populate => 1, no_deploy => 1);
18 ok($schema, 'Created a Schema');
19 isa_ok($schema->_journal_schema, 'DBIx::Class::Schema::Journal::DB', 'Actually have a schema object for the journaling');
20 isa_ok($schema->_journal_schema->source('CDAuditHistory'), 'DBIx::Class::ResultSource', 'CDAuditHistory source exists');
21 isa_ok($schema->_journal_schema->source('ArtistAuditLog'), 'DBIx::Class::ResultSource', 'ArtistAuditLog source exists');
24 $schema->_journal_schema->resultset('ChangeLog')->count;
28 is( $count, undef, "no count" );
29 like( $e, qr/table.*changelog/, "missing table error" );
31 $schema->journal_schema_deploy();
33 $count = eval { $schema->_journal_schema->resultset('ChangeLog')->count };
35 is( $@, '', "no error" );
36 is( $count, 0, "count is 0" );