From d0426425155811976014b356eeb32a391c245e90 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Wed, 1 Jul 2015 19:29:24 +0530 Subject: [PATCH] Webtest Fix --- tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php b/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php index 1e4d154e52..2265e9864b 100644 --- a/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php +++ b/tests/phpunit/WebTest/Member/OnlineMembershipRenewTest.php @@ -867,7 +867,9 @@ class WebTest_Member_OnlineMembershipRenewTest extends CiviSeleniumTestCase { $this->assertEquals($membership['count'], 1); $membershipId = $membership['id']; $this->assertEquals($membership['values'][$membershipId]['membership_name'], $membershipTypeTitle); - $this->assertEquals($membership['values'][$membershipId]['status_id'], 1); + //CRM-16165: if membership contribution status is pending then membership status should be pending + $pendingStatus = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipStatus', 'Pending', 'id', 'name'); + $this->assertEquals($membership['values'][$membershipId]['status_id'], $pendingStatus); //check if the membership created is set to reccuring $recurringContributionId = $membership['values'][$membershipId]['contribution_recur_id']; -- 2.25.1