You are here

public function UcAddressesViewsTestCase::testArgumentValidatorPlugins in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 tests/uc_addresses.views.test \UcAddressesViewsTestCase::testArgumentValidatorPlugins()

Tests if the argument validator plugins work as expected.

File

tests/uc_addresses.views.test, line 309
Test cases for Views integration.

Class

UcAddressesViewsTestCase
Test cases for Views integration.

Code

public function testArgumentValidatorPlugins() {

  // Check the Views version. Some settings are different when Views 2 is used.
  if (version_compare(views_api_version(), 3, '<')) {

    // Setup View for Views 2.
    $this
      ->createArgumentValidatorView2();
  }
  else {
    $this
      ->createArgumentValidatorView3();
  }

  // Test display access.
  $this
    ->doDisplayAccessTests('uc_addresses_argument_validator', 404);
}