public function CertificateTestCase::setUp in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.test \CertificateTestCase::setUp()
- 6.2 certificate.test \CertificateTestCase::setUp()
- 7.3 certificate.test \CertificateTestCase::setUp()
- 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);
}