9 eval "use DBD::SQLite; use SQL::Translator";
11 ? ( skip_all => 'needs DBD::SQLite and SQL::Translator for testing' )
15 my $schema = DBICTest->init_schema(no_populate => 1, no_deploy => 1);
17 ok($schema, 'Created a Schema');
19 $schema->_journal_schema,
20 'DBIx::Class::Schema::Journal::DB',
21 'Actually have a schema object for the journaling'
24 $schema->_journal_schema->source('CDAuditHistory'),
25 'DBIx::Class::ResultSource',
26 'CDAuditHistory source exists'
29 $schema->_journal_schema->source('ArtistAuditLog'),
30 'DBIx::Class::ResultSource',
31 'ArtistAuditLog source exists'
35 $schema->_journal_schema->resultset('ChangeLog')->count;
39 is( $count, undef, 'no count' );
40 like( $e, qr/table.*changelog/, 'missing table error' );
42 $schema->journal_schema_deploy();
44 $count = eval { $schema->_journal_schema->resultset('ChangeLog')->count };
46 is( $@, '', "no error" );
47 is( $count, 0, "count is 0" );