protected function PMPAPIPermissionsWebTestCase::createTestOrg in Public Media Platform API Integration 7
1 call to PMPAPIPermissionsWebTestCase::createTestOrg()
- PMPAPIPermissionsWebTestCase::setUp in pmpapi_permissions/
tests/ pmpapi_permissions.test - Sets up the test environment.
File
- pmpapi_permissions/
tests/ pmpapi_permissions.test, line 188
Class
- PMPAPIPermissionsWebTestCase
- Tests the functionality of the PMPAPI permissions module.
Code
protected function createTestOrg() {
$values = array(
'profile' => 'organization',
'attributes' => array(
'title' => variable_get('site_name') . ' SimpleTest test org: ' . date('G:i:s'),
),
);
$org = pmpapi_send($values);
$this
->assertTrue(is_object($org), 'Test group successfully created.');
$this->testOrgGUID = !empty($org->attributes->guid) ? $org->attributes->guid : '';
}