X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F66relationship.t;h=f81ae948458695f1980e1997304039cb2fcf0584;hb=419ff18467b5fb8142cc33f2aac9e06237937b72;hp=192c17a47fed438cdba45b97a1cb51caddd9f30e;hpb=ac8a5ba46f8935a712cea6717778b8e62a4083ce;p=dbsrgits%2FDBIx-Class.git diff --git a/t/66relationship.t b/t/66relationship.t index 192c17a..f81ae94 100644 --- a/t/66relationship.t +++ b/t/66relationship.t @@ -7,7 +7,7 @@ use DBICTest; my $schema = DBICTest->init_schema(); -plan tests => 62; +plan tests => 63; # has_a test my $cd = $schema->resultset("CD")->find(4); @@ -66,6 +66,13 @@ $track->set_from_related( cd => undef ); ok( !defined($track->cd), 'set_from_related with undef ok'); +TODO: { + local $TODO = 'accessing $object->rel and set_from_related'; + my $track = $schema->resultset("Track")->new( {} ); + $track->cd; + $track->set_from_related( cd => $cd ); + ok ($track->cd, 'set_from_related ok after using the accessor' ); +}; # update_from_related, the same as set_from_related, but it calls update afterwards $track = $schema->resultset("Track")->create( {