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

[DO NOT MERGE] Is IATS buildform tested? #942

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ jobs:
/home/runner/civicrm-cv/cv api3 Extension.download install=1 key=com.drastikbydesign.stripe
/home/runner/civicrm-cv/cv api3 Extension.download install=0 key=com.iatspayments.civicrm
/home/runner/civicrm-cv/cv api3 Extension.download install=0 key=com.aghstrategies.uscounties
cd ~/drupal/web/sites/default/files/civicrm/ext/com.iatspayments.civicrm
git apply $GITHUB_WORKSPACE/iatspatch.diff
- uses: nanasess/setup-chromedriver@master
- name: Run chromedriver
run: chromedriver &
Expand All @@ -167,7 +169,7 @@ jobs:
run: |
mkdir $BROWSERTEST_OUTPUT_DIRECTORY
cd ~/drupal/web
../vendor/bin/phpunit -c core modules/contrib/webform_civicrm
../vendor/bin/phpunit -c core modules/contrib/webform_civicrm/tests/src/FunctionalJavascript/ContributionIatsTest.php
env:
SYMFONY_DEPRECATIONS_HELPER: 999999
SIMPLETEST_DB: mysql://root:@127.0.0.1:${{ job.services.mysql.ports[3306] }}/db
Expand Down
12 changes: 12 additions & 0 deletions iatspatch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/iats.php b/iats.php
index 0316e6c..c0cd7b5 100644
--- a/iats.php
+++ b/iats.php
@@ -258,6 +258,7 @@ function iats_civicrm_buildForm_CRM_Financial_Form_Payment(&$form) {
// If future public start dates are enabled on a recurring-enabled page ...
// Uses javascript to hide/reset unless they have recurring contributions checked.
$settings = Civi::settings()->get('iats_settings');
+ throw new \Exception('Do we ever reach here?');
if (!empty($settings['enable_public_future_recurring_start'])
&& $form->_paymentObject->supports('FutureRecurStartDate')
) {
Loading