Fix some comment typos in t/Shop/AddressBook

Add tests for WebGUI::Shop::Address
Fix bugs in the upgrade script (missing city entry) and
the Address new method.
This commit is contained in:
Colin Kuskie 2008-03-02 16:36:47 +00:00
parent 3da2edb1eb
commit 4b17be6e54
4 changed files with 121 additions and 2 deletions

View file

@ -59,7 +59,7 @@ sub create {
unless (defined $addressData && ref $addressData eq "HASH") {
WebGUI::Error::InvalidParam->throw(param=>$addressData, error=>"Need a hash reference.");
}
my $id = $book->session->db->setRow("addressBook","addressBookId", {addressId=>"new"});
my $id = $book->session->db->setRow("address","addressId", {addressId=>"new", addressBookId=>$book->getId});
my $address = $class->new($book, $id);
$address->update($addressData);
return $address;