public function UcAddressesViewsTestCase::testAccessFilters in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 tests/uc_addresses.views.test \UcAddressesViewsTestCase::testAccessFilters()
Tests if the address access filters work as expected.
File
- tests/
uc_addresses.views.test, line 69 - 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']);
}