You are here

public function CertificateTestCase::setUp in Certificate 3.x

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

File

./certificate.test, line 21
certificate.test

Class

CertificateTestCase
Tests for Certificate.

Code

public function setUp() {
  parent::setUp(array(
    'certificate',
    'certificate_test',
  ));

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