You are here

public function UcAddressesAddressBookAdminViewDefTestCase::testAdminViewDef in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 tests/uc_addresses.addressbook.test \UcAddressesAddressBookAdminViewDefTestCase::testAdminViewDef()

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

File

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

Class

UcAddressesAddressBookAdminViewDefTestCase
Test cases for the address book component.

Code

public function testAdminViewDef() {
  $adminViewDef = $this
    ->drupalCreateUser(array(
    'view all default addresses',
  ));
  $this
    ->doOwnAddressTests($adminViewDef, TRUE, FALSE, FALSE, FALSE);
  $this
    ->doOtherUsersAddressTests($adminViewDef, TRUE, FALSE, FALSE, FALSE);
}