public function UcAddressesAddressBookCustomerDeleteTestCase::testCustomerDelete in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.addressbook.test \UcAddressesAddressBookCustomerDeleteTestCase::testCustomerDelete()
Test if a customer who may view, edit and delete it's own addresses is able to view, edit and delete addresses.
File
- tests/
uc_addresses.addressbook.test, line 311 - Test cases for the address book component.
Class
- UcAddressesAddressBookCustomerDeleteTestCase
- Test cases for the address book component.
Code
public function testCustomerDelete() {
$customerDelete = $this
->drupalCreateUser(array(
'add/edit own addresses',
'delete own addresses',
));
$this
->doOwnAddressTests($customerDelete, TRUE, TRUE, TRUE, TRUE);
$this
->doOtherUsersAddressTests($customerDelete, FALSE, FALSE, FALSE, FALSE);
}