From: eileen Date: Wed, 15 May 2013 21:35:32 +0000 (+1200) Subject: CRM-11320 fix error in test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ab181dd9bce0a36337de45eaa15767cb0f6727f;p=civicrm-core.git CRM-11320 fix error in test --- diff --git a/tests/phpunit/api/v3/EventTest.php b/tests/phpunit/api/v3/EventTest.php index 0b1b4067c1..7b3a0c5208 100644 --- a/tests/phpunit/api/v3/EventTest.php +++ b/tests/phpunit/api/v3/EventTest.php @@ -313,7 +313,7 @@ class api_v3_EventTest extends CiviUnitTestCase { $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'])); }