X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F22cascade_copy.tl;h=e5048a19e5b0e6cf6f354f0a4c703cd9bfd6348a;hb=70350518bbb31e5ac22fb3cb73d3e17409fcd332;hp=82642f27d8b8afc5b6722a0966df6538ca0e6648;hpb=4b8dcc58874223164d4a379a5db4a9cb737d7c7a;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/22cascade_copy.tl b/t/run/22cascade_copy.tl index 82642f2..e5048a1 100644 --- a/t/run/22cascade_copy.tl +++ b/t/run/22cascade_copy.tl @@ -1,8 +1,11 @@ use strict; -use warnings; +use warnings; -sub run_tests { -my $schema = shift; +use Test::More; +use lib qw(t/lib); +use DBICTest; + +my $schema = DBICTest::init_schema(); plan tests => 4; my $artist = $schema->resultset('Artist')->find(1); @@ -28,5 +31,3 @@ cmp_ok($cover_band->search_related('twokeys')->count, '>', 0, 'duplicated multiP cmp_ok($cover_cds->search_related('tags')->count, '==', $artist_cds->search_related('tags')->count , 'duplicated count ok'); -} -1;