Skip to content

Commit

Permalink
2020 test fixes.
Browse files Browse the repository at this point in the history
We have 8 tests failing that seem to be due to 2020 starting. This fixes 2
  • Loading branch information
eileenmcnaughton committed Jan 1, 2020
1 parent a2440a3 commit e1cd958
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CRM/Member/Form/MembershipRenewal.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ public function postProcess() {
* This function is also accessed by a unit test.
*
* @throws \CRM_Core_Exception
* @throws \CiviCRM_API3_Exception
*/
protected function submit() {
$this->storeContactFields($this->_params);
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function testPaidSubmit($thousandSeparator) {
'cvv2' => '123',
'credit_card_exp_date' => [
'M' => '1',
'Y' => '2019',
'Y' => date('Y') + 1,
],
'credit_card_type' => 'Visa',
'billing_first_name' => 'p',
Expand Down Expand Up @@ -207,7 +207,7 @@ public function testPaidSubmit($thousandSeparator) {
], $entityFinancialTrxns[2], ['id', 'entity_id']);
$mut->checkMailLog([
'Event Information and Location', 'Registration Confirmation - Annual CiviCRM meet',
'Expires: January 2019',
'Expires: January ' . (date('Y') + 1),
'Visa',
'************1111',
'This is a confirmation that your registration has been received and your status has been updated to <strong> Registered</strong>',
Expand Down
6 changes: 4 additions & 2 deletions tests/phpunit/CRM/Member/Form/MembershipRenewalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ public function testSubmitRecurCompleteInstant() {
* @param string $thousandSeparator
*
* @dataProvider getThousandSeparators
*
* @throws \CiviCRM_API3_Exception
* @throws \CRM_Core_Exception
*/
public function testSubmitRecurCompleteInstantWithMail($thousandSeparator) {
$this->setCurrencySeparators($thousandSeparator);
Expand Down Expand Up @@ -614,8 +617,7 @@ protected function getBaseSubmitParams() {
'cvv2' => '123',
'credit_card_exp_date' => [
'M' => '9',
// TODO: Future proof
'Y' => '2019',
'Y' => date('Y') + 1,
],
'credit_card_type' => 'Visa',
'billing_first_name' => 'Test',
Expand Down

0 comments on commit e1cd958

Please sign in to comment.