You are here

public function TermstatusAccessTestCase::setUp in Taxonomy Term Status 7

Return info about test case.

Overrides DrupalWebTestCase::setUp

File

./termstatus.test, line 261
Tests for termstatus.module

Class

TermstatusAccessTestCase
Tests the access control features.

Code

public function setUp() {
  parent::setUp(array(
    'termstatus',
    'termstatus_test',
  ));
  variable_set('termstatus_enable', TRUE);
  $this->vocabulary = taxonomy_vocabulary_machine_name_load('tags');
  variable_set('termstatus_default_tags', 1);
  $this->publishedTerm = $this
    ->createTerm($this->vocabulary);
  variable_set('termstatus_default_tags', 0);
  $this->unpublishedTerm = $this
    ->createTerm($this->vocabulary);
}