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