public function UcAddressesAddressBookCustomerViewTestCase::testCustomerView in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.addressbook.test \UcAddressesAddressBookCustomerViewTestCase::testCustomerView()
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 245 - Test cases for the address book component.
Class
- UcAddressesAddressBookCustomerViewTestCase
- Test cases for the address book component.
Code
public function testCustomerView() {
$customerView = $this
->drupalCreateUser(array(
'view own addresses',
));
$this
->doOwnAddressTests($customerView, TRUE, TRUE, FALSE, FALSE);
$this
->doOtherUsersAddressTests($customerView, FALSE, FALSE, FALSE, FALSE);
}