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