Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.657 kB
use strict;
use warnings;
use Test::More;
use lib qw(t/lib);
use DBICTest;
my $schema = DBICTest->init_schema();
{
my @warnings;
local $SIG{__WARN__} = sub { push @warnings, @_; };
{
# Test that this doesn't cause infinite recursion.
local *DBICTest::Artist::DESTROY;
local *DBICTest::Artist::DESTROY = sub { $_[0]->discard_changes };
my $artist = $schema->resultset("Artist")->create( {
artistid => 10,
name => "artist number 10",
});
$artist->name("Wibble");
print "# About to call DESTROY\n";
}
is_deeply \@warnings, [];
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.