public function UcAddressesAddressBookAdminEditTestCase::testAdminEdit in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.addressbook.test \UcAddressesAddressBookAdminEditTestCase::testAdminEdit()
Test if a admin who may view and edit all addresses is able to view, edit and delete addresses.
File
- tests/
uc_addresses.addressbook.test, line 410 - Test cases for the address book component.
Class
- UcAddressesAddressBookAdminEditTestCase
- Test cases for the address book component.
Code
public function testAdminEdit() {
$adminEdit = $this
->drupalCreateUser(array(
'add/edit all addresses',
));
$this
->doOwnAddressTests($adminEdit, TRUE, TRUE, TRUE, FALSE);
$this
->doOtherUsersAddressTests($adminEdit, TRUE, TRUE, TRUE, FALSE);
}