You are here

public function UcAddressesAddressBookCustomerEditTestCase::testCustomerEdit in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 tests/uc_addresses.addressbook.test \UcAddressesAddressBookCustomerEditTestCase::testCustomerEdit()

Test if a customer who only may view it's own addresses is able to view, edit and delete addresses.

File

tests/uc_addresses.addressbook.test, line 276
Test cases for the address book component.

Class

UcAddressesAddressBookCustomerEditTestCase
Test cases for the address book component.

Code

public function testCustomerEdit() {
  $customerEdit = $this
    ->drupalCreateUser(array(
    'add/edit own addresses',
  ));
  $this
    ->doOwnAddressTests($customerEdit, TRUE, TRUE, TRUE, FALSE);
  $this
    ->doOtherUsersAddressTests($customerEdit, FALSE, FALSE, FALSE, FALSE);
}