You are here

public function UcAddressesAddressBookAdminAllTestCase::testAdminAll in Ubercart Addresses 7

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

Test if a admin with all uc_addresses privileges is able to view, edit and delete addresses.

File

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

Class

UcAddressesAddressBookAdminAllTestCase
Test cases for the address book component.

Code

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