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