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