Ejegg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/284741
Change subject: Namespace one last test file
......................................................................
Namespace one last test file
And remove unneeded includes from PHPUnit bootstrap.
Change-Id: Ib9e5d31065e96953fdb596421d57cca6d8615865
---
M PaymentProviders/Adyen/Tests/config_test_failure.php
M PaymentProviders/Adyen/Tests/config_test_success.php
M Tests/MockDataStore.php
M Tests/bootstrap-phpunit.php
4 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig
refs/changes/41/284741/1
diff --git a/PaymentProviders/Adyen/Tests/config_test_failure.php
b/PaymentProviders/Adyen/Tests/config_test_failure.php
index 47c32dc..3524744 100644
--- a/PaymentProviders/Adyen/Tests/config_test_failure.php
+++ b/PaymentProviders/Adyen/Tests/config_test_failure.php
@@ -4,11 +4,11 @@
'adyen' => array(
'data-store' => array(
'pending' => array(
- 'class' => 'MockDataStore',
+ 'class' => 'SmashPig\Tests\MockDataStore',
'inst-args' => array(),
),
'antifraud' => array(
- 'class' => 'MockDataStore',
+ 'class' => 'SmashPig\Tests\MockDataStore',
'inst-args' => array(),
),
),
diff --git a/PaymentProviders/Adyen/Tests/config_test_success.php
b/PaymentProviders/Adyen/Tests/config_test_success.php
index efd7931..ab2e58f 100644
--- a/PaymentProviders/Adyen/Tests/config_test_success.php
+++ b/PaymentProviders/Adyen/Tests/config_test_success.php
@@ -4,11 +4,11 @@
'adyen' => array(
'data-store' => array(
'pending' => array(
- 'class' => 'MockDataStore',
+ 'class' => 'SmashPig\Tests\MockDataStore',
'inst-args' => array(),
),
'antifraud' => array(
- 'class' => 'MockDataStore',
+ 'class' => 'SmashPig\Tests\MockDataStore',
'inst-args' => array(),
),
),
diff --git a/Tests/MockDataStore.php b/Tests/MockDataStore.php
index 49be5cc..d929db5 100644
--- a/Tests/MockDataStore.php
+++ b/Tests/MockDataStore.php
@@ -1,4 +1,6 @@
<?php
+namespace SmashPig\Tests;
+
use SmashPig\Core\DataStores\DataStoreException;
use SmashPig\Core\DataStores\DataStoreTransactionException;
use SmashPig\Core\DataStores\KeyedOpaqueDataStore;
diff --git a/Tests/bootstrap-phpunit.php b/Tests/bootstrap-phpunit.php
index 386c9f9..aae4b9b 100644
--- a/Tests/bootstrap-phpunit.php
+++ b/Tests/bootstrap-phpunit.php
@@ -1,5 +1,3 @@
<?php
require_once( 'vendor/autoload.php' );
-require_once( 'Tests/BaseSmashPigUnitTestCase.php' );
-require_once( 'Tests/MockDataStore.php' );
--
To view, visit https://gerrit.wikimedia.org/r/284741
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9e5d31065e96953fdb596421d57cca6d8615865
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits