You are here

public function UcAddressesAddressBookAdminEditTestCase::testAdminEdit in Ubercart Addresses 7

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

Test if a admin who may view and edit all addresses is able to view, edit and delete addresses.

File

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

Class

UcAddressesAddressBookAdminEditTestCase
Test cases for the address book component.

Code

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