CRM-11320 fix error in test
authoreileen <eileen@fuzion.co.nz>
Wed, 15 May 2013 21:35:32 +0000 (09:35 +1200)
committereileen <eileen@fuzion.co.nz>
Sun, 26 May 2013 09:04:02 +0000 (21:04 +1200)
tests/phpunit/api/v3/EventTest.php

index 0b1b4067c10d3909b9e8e4cc866a3045acd762e5..7b3a0c52085ced00400320af27f6512617c65f89 100644 (file)
@@ -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']));
   }