fixes for deleting ship drivers created during testing

This commit is contained in:
Colin Kuskie 2008-06-15 04:34:48 +00:00
parent 6e9031de4a
commit be29a09114
2 changed files with 10 additions and 9 deletions

View file

@ -234,9 +234,10 @@ cmp_deeply(
#
#######################################################################
my $driverId = $driver->getId;
$driver->delete;
my $count = $session->db->quickScalar('select count(*) from shipper where shipperId=?',[$driver->getId]);
my $count = $session->db->quickScalar('select count(*) from shipper where shipperId=?',[$driverId]);
is($count, 0, 'delete deleted the object');
undef $driver;