public function UcAddressesAddressBookAdminViewDefTestCase::testAdminViewDef in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 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 342 - 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);
}