X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F08inflate_has_a.tl;h=50f78c4485425021c1a7dca1ecae5d5be3e8bbd9;hb=f9db552739e7c980acb4280cb2b6c739a769da5a;hp=8763741e35114c3c0726fc9dd00b1ee11378bd02;hpb=74c188254931295b3d9b76b55819555327f3fce3;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/08inflate_has_a.tl b/t/run/08inflate_has_a.tl index 8763741..50f78c4 100644 --- a/t/run/08inflate_has_a.tl +++ b/t/run/08inflate_has_a.tl @@ -15,7 +15,7 @@ DBICTest::Schema::CD->has_a( 'year', 'DateTime', Class::C3->reinitialize; # inflation test -my $cd = $schema->class("CD")->find(3); +my $cd = $schema->resultset("CD")->find(3); is( ref($cd->year), 'DateTime', 'year is a DateTime, ok' ); @@ -26,7 +26,7 @@ my $now = DateTime->now; $cd->year( $now ); $cd->update; -($cd) = $schema->class("CD")->search( year => $now->year ); +($cd) = $schema->resultset("CD")->search( year => $now->year ); is( $cd->year->year, $now->year, 'deflate ok' ); # re-test using alternate deflate syntax @@ -36,7 +36,7 @@ $schema->class("CD")->has_a( 'year', 'DateTime', ); # inflation test -$cd = $schema->class("CD")->find(3); +$cd = $schema->resultset("CD")->find(3); is( ref($cd->year), 'DateTime', 'year is a DateTime, ok' ); @@ -47,7 +47,7 @@ $now = DateTime->now; $cd->year( $now ); $cd->update; -($cd) = $schema->class("CD")->search( year => $now->year ); +($cd) = $schema->resultset("CD")->search( year => $now->year ); is( $cd->year->year, $now->year, 'deflate ok' ); }