Skip to content

Commit

Permalink
Minor fix at unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb authored and totten committed Jul 3, 2017
1 parent e81d05f commit 9b158da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/api/v3/MembershipTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ public function testMembershipCreateWithId() {
//Update Status and check activities created.
$updateStatus = array(
'id' => $result['id'],
'status_id' => 6,
'status_id' => CRM_Core_PseudoConstant::getKey('CRM_Member_BAO_Membership', 'status_id', 'Cancelled'),
);
$this->callAPISuccess('Membership', 'create', $updateStatus);
$activities = CRM_Activity_BAO_Activity::getContactActivity($this->_contactID);
Expand Down

0 comments on commit 9b158da

Please sign in to comment.