X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F82cascade_copy.t;h=26b8425c3fc41b22395852602c89fc4a32238a15;hb=77e7e47d3279ed047c1c72a9587a9ac73797c251;hp=e5048a19e5b0e6cf6f354f0a4c703cd9bfd6348a;hpb=d6915f449e2d68ac184d6bc616043fd605913757;p=dbsrgits%2FDBIx-Class.git diff --git a/t/82cascade_copy.t b/t/82cascade_copy.t index e5048a1..26b8425 100644 --- a/t/82cascade_copy.t +++ b/t/82cascade_copy.t @@ -5,7 +5,7 @@ use Test::More; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest::init_schema(); +my $schema = DBICTest->init_schema(); plan tests => 4; my $artist = $schema->resultset('Artist')->find(1); @@ -14,7 +14,7 @@ my $artist_cds = $artist->search_related('cds'); my $cover_band; { - no warnings 'redefine'; + no warnings qw(redefine once); local *DBICTest::Artist::result_source_instance = \&DBICTest::Schema::Artist::result_source_instance; $cover_band = $artist->copy;