You are here

public function UcAddressesAddressBookAdminViewTestCase::testAdminView in Ubercart Addresses 7

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

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

File

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

Class

UcAddressesAddressBookAdminViewTestCase
Test cases for the address book component.

Code

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