From 9ab181dd9bce0a36337de45eaa15767cb0f6727f Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 16 May 2013 09:35:32 +1200 Subject: [PATCH] CRM-11320 fix error in test --- tests/phpunit/api/v3/EventTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])); } -- 2.25.1