You are here

public function CertificateTestCase::setUp in Certificate 8.3

Same name and namespace in other branches
  1. 6.2 certificate.test \CertificateTestCase::setUp()
  2. 7.3 certificate.test \CertificateTestCase::setUp()
  3. 7.2 certificate.test \CertificateTestCase::setUp()
  4. 3.x certificate.test \CertificateTestCase::setUp()

File

./certificate.test, line 23
certificate.test

Class

CertificateTestCase
Tests for Certificate.

Code

public function setUp() {
  parent::setUp(array(
    'certificate',
    'certificate_test',
  ));
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'bypass node access',
    'administer certificates',
  ));

  // Set up an activity.
  $this->contentType = $this
    ->drupalCreateContentType(array(
    'type' => 'certificate_activity',
  ));
  variable_set("certificate_certifiable_" . $this->contentType->type, TRUE);
}