Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263359
Change subject: Test: DO NOT MERGE
......................................................................
Test: DO NOT MERGE
Change-Id: I6c9817542116233311c5c2d0a87ba80bc9f610dd
---
M tests/Adapter/GatewayAdapterTest.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/59/263359/1
diff --git a/tests/Adapter/GatewayAdapterTest.php
b/tests/Adapter/GatewayAdapterTest.php
index d14412f..8919403 100644
--- a/tests/Adapter/GatewayAdapterTest.php
+++ b/tests/Adapter/GatewayAdapterTest.php
@@ -158,7 +158,7 @@
$init = $this->getDonorTestData();
$init['payment_method'] = 'cc';
- $this->setMwGlobals( 'wgRequest', new FauxRequest( $init, false
) );
+ ContextSource::getRequest( new FauxRequest( $init, false ) );
$gateway = new TestingGlobalCollectAdapter();
$gateway->do_transaction( 'Donate' );
@@ -170,7 +170,7 @@
$init['recurring'] = '1';
RequestContext::resetMain();
- $this->setMwGlobals( 'wgRequest', new FauxRequest( $init, false
) );
+ ContextSource::getRequest( new FauxRequest( $init, false ) );
$gateway = new TestingGlobalCollectAdapter();
$gateway->do_transaction( 'Donate' );
@@ -188,7 +188,7 @@
$init['payment_method'] = 'bt';
$init['payment_submethod'] = 'itau';
- $this->setMwGlobals( 'wgRequest', new FauxRequest( $init, false
) );
+ ContextSource::getRequest( new FauxRequest( $init, false ) );
$gateway = new TestingAstropayAdapter();
$gateway->do_transaction( 'Donate' );
@@ -199,7 +199,7 @@
$init['payment_method'] = 'cc';
unset( $init['payment_submethod'] );
RequestContext::resetMain();
- $this->setMwGlobals( 'wgRequest', new FauxRequest( $init, false
) );
+ ContextSource::getRequest( new FauxRequest( $init, false ) );
$gateway = new TestingAstropayAdapter();
$newMethod = $gateway->getData_Unstaged_Escaped(
'payment_method' );
--
To view, visit https://gerrit.wikimedia.org/r/263359
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c9817542116233311c5c2d0a87ba80bc9f610dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits