X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=5ce9fe4270f245e1fe0e5f2562a98d0f62dd49d5;hb=827a808f2651b5460a8a8f9ae8bfeed0e062b302;hp=8ebae0de6e4a367fc5e6385d07e550550a0e4316;hpb=f0ac764e09fbcfe66b760747881fe76c5df779ad;p=dbsrgits%2FDBIx-Class.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index 8ebae0d..5ce9fe4 100644 --- a/t/99dbic_sqlt_parser.t +++ b/t/99dbic_sqlt_parser.t @@ -39,6 +39,7 @@ my $idx_exceptions = { 'Artwork' => -1, 'ForceForeign' => -1, 'LinerNotes' => -1, + 'TwoKeys' => -1, # TwoKeys has the index turned off on the rel def }; { @@ -52,7 +53,6 @@ my $idx_exceptions = { my @indices = $table->get_indices; my $index_count = scalar(@indices); - $index_count++ if ($source_name eq 'TwoKeys'); # TwoKeys has the index turned off on the rel def is($index_count, $fk_count, "correct number of indices for $source_name with no args"); for my $index (@indices) { @@ -74,7 +74,6 @@ my $idx_exceptions = { $fk_count += $idx_exceptions->{$source_name} || 0; my @indices = $table->get_indices; my $index_count = scalar(@indices); - $index_count++ if ($source_name eq 'TwoKeys'); # TwoKeys has the index turned off on the rel def is($index_count, $fk_count, "correct number of indices for $source_name with add_fk_index => 1"); } }