You are here

public function UcAddressesAddressBookCustomerViewDefTestCase::testCustomerViewDef in Ubercart Addresses 7

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

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

File

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

Class

UcAddressesAddressBookCustomerViewDefTestCase
Test cases for the address book component.

Code

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