Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed webtest for civi-4.6 #5547

Merged
merged 2 commits into from
Apr 9, 2015
Merged

Fixed webtest for civi-4.6 #5547

merged 2 commits into from
Apr 9, 2015

Conversation

pratikshad
Copy link
Contributor

Fixed Webtest -
WebTest_ACL_AssignUsersToRolesTest.testAssignUsersToRoles
WebTest_ACL_AssignUsersToRolesTest.testACLforSmartGroups
WebTest_Contact_TaskActionAddToGroupTest.testMultiplePageContactSearchAddContactsToGroup
WebTest_Contribute_UpdateContributionTest.testChangePaymentInstrument

@@ -262,9 +262,9 @@ public function testChangePaymentInstrument() {
$this->waitForAjaxContent();
//Assertions
$subtractedTotal = $this->_getPremiumActualCost($contId, NULL, 'Payment Processor Account');
$this->assertEquals($subtractedTotal, -$amount, "Verify amount deleted from old account");
$this->assertEquals($subtractedTotal, NULL, "Verify amount deleted from old account");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if its a right fix, please verify the change again !!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

‎I don't think it's a great fix to check NULL. 
Could you try adding 5th parameter as entity table to _getPremiumActualCost functionSomething like$subtractedTotal = $this->_getPremiumActualCost($contId, NULL, 'Payment Processor Account‎', NULL, 'civicrm_contribution');

Or set $entityTable = 'civicrm-contribution'‎ by default in function _getPremiumActualCost.
HTH
Pradeep
Sent from my BlackBerry 10 smartphone.

@kurund kurund added the 4.6 label Apr 6, 2015
@monishdeb
Copy link
Member

test build failure is not related to current changes

monishdeb added a commit that referenced this pull request Apr 9, 2015
@monishdeb monishdeb merged commit 816aa29 into civicrm:4.6 Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants