public function UcAddressesViewsTestCase::testAccessFilters in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.views.test \UcAddressesViewsTestCase::testAccessFilters()
Tests if the address access filters work as expected.
File
- tests/
uc_addresses.views.test, line 93 - Test cases for Views integration.
Class
- UcAddressesViewsTestCase
- Test cases for Views integration.
Code
public function testAccessFilters() {
// Setup View.
$this
->createAccessFiltersView();
$this
->doAccessFilterTests($this->accounts['customerBasic']);
$this
->doAccessFilterTests($this->accounts['customerViewDef']);
$this
->doAccessFilterTests($this->accounts['customerView']);
$this
->doAccessFilterTests($this->accounts['customerEdit']);
$this
->doAccessFilterTests($this->accounts['customerDelete']);
$this
->doAccessFilterTests($this->accounts['adminViewDef']);
$this
->doAccessFilterTests($this->accounts['adminView']);
$this
->doAccessFilterTests($this->accounts['adminEdit']);
$this
->doAccessFilterTests($this->accounts['adminAll']);
}