protected function UcAddressesViewsTestCase::UcAddressesCreateUsers in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.views.test \UcAddressesViewsTestCase::UcAddressesCreateUsers()
Create users, each with different uc_addresses permissions.
1 call to UcAddressesViewsTestCase::UcAddressesCreateUsers()
- UcAddressesViewsTestCase::setUp in tests/
uc_addresses.views.test - Setup.
File
- tests/
uc_addresses.views.test, line 58 - Test cases for Views integration.
Class
- UcAddressesViewsTestCase
- Test cases for Views integration.
Code
protected function UcAddressesCreateUsers() {
$this->accounts = array();
$this->accounts['customerBasic'] = $this
->UcAddressesCreateUser('customerBasic');
$this->accounts['customerViewDef'] = $this
->UcAddressesCreateUser('customerViewDef', array(
'view own default addresses',
), TRUE);
$this->accounts['customerView'] = $this
->UcAddressesCreateUser('customerView', array(
'view own addresses',
), TRUE, TRUE);
$this->accounts['customerEdit'] = $this
->UcAddressesCreateUser('customerEdit', array(
'add/edit own addresses',
), TRUE, TRUE, TRUE);
$this->accounts['customerDelete'] = $this
->UcAddressesCreateUser('customerDelete', array(
'add/edit own addresses',
'delete own addresses',
), TRUE, TRUE, TRUE, TRUE);
$this->accounts['adminViewDef'] = $this
->UcAddressesCreateUser('adminViewDef', array(
'view all default addresses',
), TRUE, FALSE, FALSE, FALSE, TRUE);
$this->accounts['adminView'] = $this
->UcAddressesCreateUser('adminView', array(
'view all addresses',
), TRUE, TRUE, FALSE, FALSE, TRUE, TRUE);
$this->accounts['adminEdit'] = $this
->UcAddressesCreateUser('adminEdit', array(
'add/edit all addresses',
), TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, TRUE);
$this->accounts['adminAll'] = $this
->UcAddressesCreateUser('adminAll', array(
'add/edit all addresses',
'delete all addresses',
), TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);
}