jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370093 )

Change subject: Merge branch 'master' into deployment
......................................................................


Merge branch 'master' into deployment

Delete tests and update vendor

a506f2ebb Restore unsubscribe tag replacement
caa411184 Add drush via composer.
7c046d929 Limit Silverpop group import to Opt In by default
1776e7f63 Update SmashPig, class name in Amazon audit
86a779d15 Ingenico WX audit module

Change-Id: Ia3ebdab05af46cc19e40640846142617d6bdb57f
---
D sites/all/modules/wmf_audit/tests/IngenicoAuditTest.php
D 
sites/all/modules/wmf_audit/tests/data/Ingenico/chargeback/wx1.000000123420170801.010211.xml.gz
D 
sites/all/modules/wmf_audit/tests/data/Ingenico/donation/wx1.000000123420170801.010211.xml.gz
D 
sites/all/modules/wmf_audit/tests/data/Ingenico/refund/wx1.000000123420170801.010211.xml.gz
D sites/all/modules/wmf_audit/tests/data/logs/payments-globalcollect-20170730.gz
M vendor
6 files changed, 1 insertion(+), 169 deletions(-)

Approvals:
  jenkins-bot: Verified
  Ejegg: Looks good to me, approved



diff --git a/sites/all/modules/wmf_audit/tests/IngenicoAuditTest.php 
b/sites/all/modules/wmf_audit/tests/IngenicoAuditTest.php
deleted file mode 100644
index 1bdfa4a..0000000
--- a/sites/all/modules/wmf_audit/tests/IngenicoAuditTest.php
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-/**
- * @group Ingenico
- * @group WmfAudit
- */
-class IngenicoAuditTest extends BaseWmfDrupalPhpUnitTestCase {
-       static protected $messages;
-
-       protected $contact_id;
-       protected $contribution_ids = array();
-
-       public function setUp() {
-               parent::setUp();
-               self::$messages = array();
-
-               $dirs = array(
-                       'wmf_audit_log_archive_dir' => __DIR__ . '/data/logs/',
-                       'ingenico_audit_recon_completed_dir' => 
$this->getTempDir(),
-                       'ingenico_audit_working_log_dir' => $this->getTempDir(),
-               );
-
-               foreach ( $dirs as $var => $dir ) {
-                       if ( !is_dir( $dir ) ) {
-                               mkdir( $dir );
-                       }
-                       variable_set( $var, $dir );
-               }
-
-               $old_working = glob( $dirs['ingenico_audit_working_log_dir'] . 
'*' );
-               foreach ( $old_working as $zap ) {
-                       if ( is_file( $zap ) ) {
-                               unlink( $zap );
-                       }
-               }
-
-               variable_set( 'ingenico_audit_log_search_past_days', 7 );
-
-               // Fakedb doesn't fake the original txn for refunds, so add one 
here
-               $existing = wmf_civicrm_get_contributions_from_gateway_id( 
'globalcollect', '11992288' );
-               if ( $existing ) {
-                       // Previous test run may have crashed before cleaning up
-                       $contribution = $existing[0];
-               } else {
-                       $msg = array(
-                               'contribution_tracking_id' => 8675309,
-                               'currency' => 'USD',
-                               'date' => 1455825706,
-                               'email' => 'n...@flying.com',
-                               'gateway' => 'globalcollect',
-                               'gateway_txn_id' => '11992288',
-                               'gross' => 100.00,
-                               'payment_method' => 'cc',
-                               'payment_submethod' => 'visa',
-                       );
-                       $contribution = 
wmf_civicrm_contribution_message_import( $msg );
-               }
-               $this->contact_id = $contribution['contact_id'];
-
-               // and another for the chargeback
-               $existing = wmf_civicrm_get_contributions_from_gateway_id( 
'globalcollect', '55500002' );
-               if ( $existing ) {
-                       // Previous test run may have crashed before cleaning up
-                       $contribution = $existing[0];
-               } else {
-                       $msg = array(
-                               'contribution_tracking_id' => 5318008,
-                               'currency' => 'USD',
-                               'date' => 1443724034,
-                               'email' => 'lovelys...@python.com',
-                               'gateway' => 'globalcollect',
-                               'gateway_txn_id' => '55500002',
-                               'gross' => 200.00,
-                               'payment_method' => 'cc',
-                               'payment_submethod' => 'visa',
-                               'contact_id' => $this->contact_id,
-                       );
-                       $contribution = 
wmf_civicrm_contribution_message_import( $msg );
-               }
-       }
-
-       public function tearDown() {
-               $this->cleanUpContact( $this->contact_id );
-       }
-
-       public function auditTestProvider() {
-               return array(
-                       array( __DIR__ . '/data/Ingenico/donation/', array(
-                               'main' => array(
-                                       array(
-                                               'contribution_tracking_id' => 
'5551212',
-                                               'country' => 'US',
-                                               'currency' => 'USD',
-                                               'date' => 1501368968,
-                                               'email' => 
'dutch...@flying.net',
-                                               'first_name' => 'Arthur',
-                                               'gateway' => 'globalcollect', 
// TODO: Connect donations get 'ingenico'
-                                               'gateway_txn_id' => '987654321',
-                                               'gross' => '3.00',
-                                               'last_name' => 'Aardvark',
-                                               'order_id' => '987654321',
-                                               'payment_method' => 'cc',
-                                               'payment_submethod' => 'visa',
-                                               'user_ip' => '111.222.33.44',
-                                               'utm_campaign' => 
'ingenico_audit',
-                                               'utm_medium' => 
'ingenico_audit',
-                                               'utm_source' => 
'ingenico_audit',
-                                               'street_address' => '1111 Fake 
St',
-                                               'city' => 'Denver',
-                                               'state_province' => 'CO',
-                                               'postal_code' => '87654',
-                                       ),
-                               ),
-                       ) ),
-                array( __DIR__ . '/data/Ingenico/refund/', array(
-                               'negative' => array(
-                                       array(
-                                               'date' => 1500942220,
-                                               'gateway' => 'globalcollect',
-                                               'gateway_parent_id' => 
'11992288',
-                                               'gross' => '100.00',
-                                               'gross_currency' => 'USD',
-                                               'type' => 'refund',
-                                       ),
-                               ),
-                       ) ),
-                array( __DIR__ . '/data/Ingenico/chargeback/', array(
-                               'negative' => array(
-                                       array(
-                                               'date' => 1495023569,
-                                               'gateway' => 'globalcollect',
-                                               'gateway_parent_id' => 
'55500002',
-                                               'gross' => '200.00',
-                                               'gross_currency' => 'USD',
-                                               'type' => 'chargeback',
-                                       ),
-                               ),
-                       ) ),
-               );
-       }
-
-       /**
-        * @dataProvider auditTestProvider
-        */
-       public function testParseFiles( $path, $expectedMessages ) {
-               variable_set( 'ingenico_audit_recon_files_dir', $path );
-
-               $this->runAuditor();
-
-               $this->assertEquals( $expectedMessages, self::$messages );
-       }
-
-       protected function runAuditor() {
-               $options = array(
-                       'fakedb' => true,
-                       'quiet' => true,
-                       'test' => true,
-                       'test_callback' => array( 'IngenicoAuditTest', 
'receiveMessages' ),
-                       #'verbose' => 'true', # Uncomment to debug.
-               );
-               $audit = new IngenicoAuditProcessor( $options );
-               $audit->run();
-       }
-
-       static public function receiveMessages( $msg, $type ) {
-               self::$messages[$type][] = $msg;
-       }
-}
diff --git 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/chargeback/wx1.000000123420170801.010211.xml.gz
 
b/sites/all/modules/wmf_audit/tests/data/Ingenico/chargeback/wx1.000000123420170801.010211.xml.gz
deleted file mode 100644
index 2c5f9af..0000000
--- 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/chargeback/wx1.000000123420170801.010211.xml.gz
+++ /dev/null
Binary files differ
diff --git 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/donation/wx1.000000123420170801.010211.xml.gz
 
b/sites/all/modules/wmf_audit/tests/data/Ingenico/donation/wx1.000000123420170801.010211.xml.gz
deleted file mode 100644
index 5e193b8..0000000
--- 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/donation/wx1.000000123420170801.010211.xml.gz
+++ /dev/null
Binary files differ
diff --git 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/refund/wx1.000000123420170801.010211.xml.gz
 
b/sites/all/modules/wmf_audit/tests/data/Ingenico/refund/wx1.000000123420170801.010211.xml.gz
deleted file mode 100644
index b6b3f38..0000000
--- 
a/sites/all/modules/wmf_audit/tests/data/Ingenico/refund/wx1.000000123420170801.010211.xml.gz
+++ /dev/null
Binary files differ
diff --git 
a/sites/all/modules/wmf_audit/tests/data/logs/payments-globalcollect-20170730.gz
 
b/sites/all/modules/wmf_audit/tests/data/logs/payments-globalcollect-20170730.gz
deleted file mode 100644
index 0992023..0000000
--- 
a/sites/all/modules/wmf_audit/tests/data/logs/payments-globalcollect-20170730.gz
+++ /dev/null
Binary files differ
diff --git a/vendor b/vendor
index e2f13e9..38973ac 160000
--- a/vendor
+++ b/vendor
@@ -1 +1 @@
-Subproject commit e2f13e902077af0e2f3997b61727fe9eba275410
+Subproject commit 38973ac570f3cb453102f81e8edaaa32ca4ab1b9

-- 
To view, visit https://gerrit.wikimedia.org/r/370093
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3ebdab05af46cc19e40640846142617d6bdb57f
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: deployment
Gerrit-Owner: Ejegg <ej...@ejegg.com>
Gerrit-Reviewer: Ejegg <ej...@ejegg.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to