protected $params;
protected $id;
-
public $DBResetRequired = FALSE;
function setUp() {
'weight' => 10,
);
parent::setUp();
+ $this->useTransaction(TRUE);
}
- function tearDown() {}
-
public function testCreateParticipantStatusType() {
$result = $this->callAPIAndDocument('participant_status_type', 'create', $this->params, __FUNCTION__, __FILE__);
$this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
}
public function testGetParticipantStatusType() {
+ $result = $this->callAPIAndDocument('participant_status_type', 'create', $this->params, __FUNCTION__, __FILE__);
+ $this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
+
$result = $this->callAPIAndDocument('participant_status_type', 'get', $this->params, __FUNCTION__, __FILE__);
$this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
$this->assertNotNull($result['values'][$result['id']]['id'], 'In line ' . __LINE__);