$this->assertAPISuccess($result, ' Event Creation Failedon line ' . __LINE__);
$getresult = civicrm_api('event', 'get', array('version' => 3,) + $contributionTypeArray);
$this->assertAPISuccess($result, ' Event Creation on line ' . __LINE__);
- $this->assertEquals($result['values'][$result['id']]['contribution_type_id'], 3);
+ $this->assertEquals($getresult['values'][$getresult['id']]['contribution_type_id'], 3);
$this->assertEquals($result['id'], $getresult['id']);
civicrm_api('event', 'delete', array('version' => 3, 'id' => $result['id']));
}