X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F86sqlt.t;h=095a8785658715190fce45fccc75ebdf1509fb75;hb=77d76d0f2fe3f253eea0fb2b4b1f0f604d130d9e;hp=52e22333d06d28358e8fc3a92a438940e95c60f5;hpb=b1edf9f9fc1683eddadc3e916ddd1c0acc6cbd78;p=dbsrgits%2FDBIx-Class.git diff --git a/t/86sqlt.t b/t/86sqlt.t index 52e2233..095a878 100644 --- a/t/86sqlt.t +++ b/t/86sqlt.t @@ -10,7 +10,7 @@ plan skip_all => 'SQL::Translator required' if $@; my $schema = DBICTest->init_schema; -plan tests => 53; +plan tests => 54; my $translator = SQL::Translator->new( parser_args => { @@ -24,10 +24,15 @@ $translator->producer('SQLite'); my $output = $translator->translate(); + +ok($output, "SQLT produced someoutput") + or diag($translator->error); + # Note that the constraints listed here are the only ones that are tested -- if # more exist in the Schema than are listed here and all listed constraints are -# correct, the test will still pass. If you add a class to DBICTest::Schema, -# add tests here if you think the existing test coverage is not sufficient +# correct, the test will still pass. If you add a class with UNIQUE or FOREIGN +# KEY constraints to DBICTest::Schema, add tests here if you think the existing +# test coverage is not sufficient my %fk_constraints = ( @@ -138,7 +143,7 @@ my %fk_constraints = ( 'display' => 'treelike->treelike for parent', 'selftable' => 'treelike', 'foreigntable' => 'treelike', 'selfcols' => ['parent'], 'foreigncols' => ['id'], - on_delete => '', on_update => '', + on_delete => 'CASCADE', on_update => 'CASCADE', }, ],