$this->assertEquals($customGroup['values'][$customGroup['id']]['style'], 'Inline');
}
- /**
- * Check with not array.
- */
- public function testCustomGroupCreateNotArray() {
- $params = NULL;
- $customGroup = $this->callAPIFailure('custom_group', 'create', $params);
- $this->assertEquals($customGroup['error_message'], 'Input variable `params` is not an array');
- }
-
/**
* Check without title.
*/
$this->assertEquals($customGroup['error_message'], 'Mandatory key(s) missing from params array: id');
}
- /**
- * Check with no array.
- */
- public function testCustomGroupDeleteNoArray() {
- $params = NULL;
- $customGroup = $this->callAPIFailure('custom_group', 'delete', $params);
- $this->assertEquals($customGroup['error_message'], 'Input variable `params` is not an array');
- }
-
/**
* Check with valid custom group id.
*/