You are here

public function UcAddressesAddressBookCustomerViewTestCase::testCustomerView in Ubercart Addresses 7

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

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 243
Test cases for the address book component.

Class

UcAddressesAddressBookCustomerViewTestCase
Test cases for the address book component.

Code

public function testCustomerView() {
  $customerView = $this
    ->drupalCreateUser(array(
    'view own addresses',
  ));
  $this
    ->doOwnAddressTests($customerView, TRUE, TRUE, FALSE, FALSE);
  $this
    ->doOtherUsersAddressTests($customerView, FALSE, FALSE, FALSE, FALSE);
}