Skip to content

Commit

Permalink
Merge branch '4.5' into master
Browse files Browse the repository at this point in the history
Conflicts:
	CRM/Core/Payment/BaseIPN.php
	tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php
	tests/phpunit/WebTest/Event/AddPricesetTest.php
	tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php
  • Loading branch information
colemanw committed Jan 14, 2015
2 parents 7366281 + 7b8d1e6 commit 29d98e1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/BaseIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ public function completeTransaction(&$input, &$ids, &$objects, &$transaction, $r
'labelColumn' => 'name',
'flip' => 1
));
if ((empty($input['prevContribution']) && $paymentProcessorId) || (!$input['prevContribution']->is_pay_later && -$input['prevContribution']->contribution_status_id == $contributionStatuses['Pending'])) {
if ((empty($input['prevContribution']) && $paymentProcessorId) || (!$input['prevContribution']->is_pay_later && $input['prevContribution']->contribution_status_id == $contributionStatuses['Pending'])) {
$input['payment_processor'] = $paymentProcessorId;
}
$input['contribution_status_id'] = $contributionStatuses['Completed'];
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/WebTest/Case/CaseCustomFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function testAddCase() {

// verify if custom data is present
$this->openCiviPage('case', 'reset=1');
$this->clickLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[text()='Manage']");
$this->clickLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[1][text()='Manage']");

$this->clickAjaxLink("css=#{$customGrp1} .crm-accordion-header", "css=#{$customGrp1} a.button");
$cusId_1 = 'custom_' . $customId[0] . '_1';
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/WebTest/Event/AddPricesetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ public function testRegisterWithPriceSet() {
$this->click('link=Fees');
$this->waitForElementPresent('_qf_Fee_upload_done-bottom');
$this->click('CIVICRM_QFID_1_is_monetary');
$this->click("xpath=//tr[@class='crm-event-manage-fee-form-block-payment_processor']/td[2]/label[text()='$processorName']");
$this->select('financial_type_id', 'label=Event Fee');
$this->click("xpath=//tbale[@id='paymentProcessor']/tbody/tr[1]/td[2]/label[text()='$processorName']");
$this->select('financial_type_id','label=Event Fee');
$this->select('price_set_id', 'label=' . $setTitle);

// intro text for registration page
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/WebTest/Event/MultiprofileEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ function _testEventRegistration(
$this->type("city-Primary", "primecity");
$this->type("phone-Primary-1", "98667764");
$this->type("postal_code-Primary", "6548");

$this->waitForElementPresent('nick_name');
$this->type("nick_name", "Nick1");
$this->type("url-1", "http://www.part.com");

Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/WebTest/Member/OfflineMembershipRenewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ public function testOfflineMemberRenewOverride() {
// Is status message correct?
$this->waitForText('crm-notification-container', "{$membershipTypes['membership_type']} membership for $firstName Memberson has been added.");

$this->waitForElementPresent("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span[2][text()='more']/ul/li/a[text()='Renew']");
$this->waitForElementPresent("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span[2][text()='more']/ul/li[1]/a[text()='Renew']");

// click through to the Membership Renewal Link
$this->click("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span[2][text()='more']/ul/li/a[text()='Renew']");
$this->click("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span[2][text()='more']/ul/li[1]/a[text()='Renew']");

$this->waitForElementPresent('_qf_MembershipRenewal_cancel-bottom');

Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/WebTest/Report/LoggingReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public function testLoggingReport() {

//visit the logging contact summary report
$this->openCiviPage('report/logging/contact/summary', 'reset=1');
$this->waitForElementPresent('altered_contact_value');
$this->type('altered_contact_value', $firstName);
$this->click("_qf_LoggingSummary_submit");
$this->waitForPageToLoad($this->getTimeoutMsec());
Expand Down

0 comments on commit 29d98e1

Please sign in to comment.