You are here

public function UcAddressesAddressBookCustomerDeleteTestCase::testCustomerDelete in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 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 309
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);
}