Ejegg has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/363391 )
Change subject: It's just 'Test', not 'TestMode' ...................................................................... It's just 'Test', not 'TestMode' Change-Id: I44e8867a5adf916d1bdb89337e72ed6022ab59a5 --- M DonationInterface.class.php M tests/phpunit/DonationInterfaceTestCase.php M tests/phpunit/TestConfiguration.php 3 files changed, 7 insertions(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/91/363391/1 diff --git a/DonationInterface.class.php b/DonationInterface.class.php index fbb0713..58c338c 100644 --- a/DonationInterface.class.php +++ b/DonationInterface.class.php @@ -8,14 +8,14 @@ * Executed after processing extension.json */ public static function registerExtension() { - global $wgDonationInterfaceTestMode, + global $wgDonationInterfaceTest, $wgDonationInterfaceTemplate, $wgDonationInterfaceErrorTemplate; // Test mode (not for production!) // Set it if not defined - if ( !isset( $wgDonationInterfaceTestMode) || $wgDonationInterfaceTestMode !== true ) { - $wgDonationInterfaceTestMode = false; + if ( !isset( $wgDonationInterfaceTest ) || $wgDonationInterfaceTest !== true ) { + $wgDonationInterfaceTest = false; } /** diff --git a/tests/phpunit/DonationInterfaceTestCase.php b/tests/phpunit/DonationInterfaceTestCase.php index 42700a7..d7c9c5f 100644 --- a/tests/phpunit/DonationInterfaceTestCase.php +++ b/tests/phpunit/DonationInterfaceTestCase.php @@ -62,8 +62,8 @@ public function __construct( $name = null, array $data = array(), $dataName = '' ) { //Just in case you got here without running the configuration... - global $wgDonationInterfaceTestMode; - $wgDonationInterfaceTestMode = true; + global $wgDonationInterfaceTest; + $wgDonationInterfaceTest = true; parent::__construct( $name, $data, $dataName ); } diff --git a/tests/phpunit/TestConfiguration.php b/tests/phpunit/TestConfiguration.php index 30d6cb4..a80ee19 100644 --- a/tests/phpunit/TestConfiguration.php +++ b/tests/phpunit/TestConfiguration.php @@ -52,7 +52,7 @@ */ define( 'TESTS_ADAPTER_DEFAULT', 'TestingGlobalCollectAdapter' ); -global $wgDonationInterfaceTestMode, +global $wgDonationInterfaceTest, $wgDonationInterfaceMerchantID, $wgDonationInterfaceGatewayAdapters, $wgDonationInterfaceAllowedHtmlForms, @@ -102,7 +102,7 @@ * Make sure the test setup is used, else we'll have the wrong classes. */ /** DonationInterface General Settings **/ -$wgDonationInterfaceTestMode = true; +$wgDonationInterfaceTest = true; $wgDonationInterfaceMerchantID = 'test'; $wgDonationInterfaceThankYouPage = 'https://wikimediafoundation.org/wiki/Thank_You'; -- To view, visit https://gerrit.wikimedia.org/r/363391 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I44e8867a5adf916d1bdb89337e72ed6022ab59a5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <ej...@ejegg.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits