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