You are here

public function UcAddressesViewsTestCase::testActionLinks in Ubercart Addresses 6.2

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

Tests if the view, edit and delete links are only displayed for users that are allowed to perform these tasks.

File

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

Class

UcAddressesViewsTestCase
Test cases for Views integration.

Code

public function testActionLinks() {

  // Setup View.
  $this
    ->createActionLinksView();
  $this
    ->doActionLinksTests($this->accounts['customerBasic']);
  $this
    ->doActionLinksTests($this->accounts['customerViewDef']);
  $this
    ->doActionLinksTests($this->accounts['customerView']);
  $this
    ->doActionLinksTests($this->accounts['customerEdit']);
  $this
    ->doActionLinksTests($this->accounts['customerDelete']);
  $this
    ->doActionLinksTests($this->accounts['adminViewDef']);
  $this
    ->doActionLinksTests($this->accounts['adminView']);
  $this
    ->doActionLinksTests($this->accounts['adminEdit']);
  $this
    ->doActionLinksTests($this->accounts['adminAll']);
}