You are here

function PatternsGeneralTestCase::testPatterns in Patterns 7

Same name and namespace in other branches
  1. 7.2 tests/general/general.test \PatternsGeneralTestCase::testPatterns()

Login users, load the Patterns list page.

File

tests/general/general.test, line 52
General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Class

PatternsGeneralTestCase
@file General SimpleTests for Patterns. Also, a Pattern running base class which uses QuickRun.

Code

function testPatterns() {

  // Login the patterns administrator.
  $this
    ->drupalLogin($this->pat_user);
  $this
    ->verifyAccess(200);

  // Login a regular user.
  $this
    ->drupalLogin($this->std_user);
  $this
    ->verifyAccess(403);
}