From a566e8c8d5803bd65d1ca596e8ee79fa63d91303 Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Sun, 23 Nov 2014 03:55:37 +0100 Subject: [PATCH 1/2] Fix Payment Custom Adapter tests --- tests/bb-library/Payment/Adapter/Custom.php | 5 ++++- tests/fixtures/gateway_Custom.xml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/gateway_Custom.xml diff --git a/tests/bb-library/Payment/Adapter/Custom.php b/tests/bb-library/Payment/Adapter/Custom.php index 46e6b0bb2..b609754b4 100644 --- a/tests/bb-library/Payment/Adapter/Custom.php +++ b/tests/bb-library/Payment/Adapter/Custom.php @@ -4,6 +4,8 @@ */ class Payment_Adapter_CustomTest extends BBDbApiTestCase { + protected $_initialSeedFile = 'gateway_Custom.xml'; + public function testCustom() { $config = array( @@ -11,8 +13,9 @@ class Payment_Adapter_CustomTest extends BBDbApiTestCase 'recurrent' => 'test', ); $adapter = new Payment_Adapter_Custom($config); + $adapter->setDi($this->di); $adapter->getConfig(); $adapter->getHtml($this->api_admin, 1); - $adapter->processTransaction(); + $adapter->process(); } } \ No newline at end of file diff --git a/tests/fixtures/gateway_Custom.xml b/tests/fixtures/gateway_Custom.xml new file mode 100644 index 000000000..b7de6673a --- /dev/null +++ b/tests/fixtures/gateway_Custom.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + From 3a94f8b6dd4707cec8dbb6f7937930bc8d909337 Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Sun, 23 Nov 2014 04:03:54 +0100 Subject: [PATCH 2/2] Enable some disabled tests --- .../bb-library/Payment/Adapter/CustomTest.php} | 0 .../bb-library/Payment/Adapter/PayPalEmailTest.php} | 0 .../bb-library/Payment/Adapter/TwoCheckoutTest.php} | 0 .../bb-library/Payment/Adapter/WebMoneyTest.php} | 0 .../mod_servicelicense/{Api_Admin.php => Api_AdminTest.php} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename tests/{bb-library/Payment/Adapter/Custom.php => integration/bb-library/Payment/Adapter/CustomTest.php} (100%) rename tests/{bb-library/Payment/Adapter/PayPalEmail.php => integration/bb-library/Payment/Adapter/PayPalEmailTest.php} (100%) rename tests/{bb-library/Payment/Adapter/TwoCheckout.php => integration/bb-library/Payment/Adapter/TwoCheckoutTest.php} (100%) rename tests/{bb-library/Payment/Adapter/WebMoney.php => integration/bb-library/Payment/Adapter/WebMoneyTest.php} (100%) rename tests/integration/bb-modules/mod_servicelicense/{Api_Admin.php => Api_AdminTest.php} (100%) diff --git a/tests/bb-library/Payment/Adapter/Custom.php b/tests/integration/bb-library/Payment/Adapter/CustomTest.php similarity index 100% rename from tests/bb-library/Payment/Adapter/Custom.php rename to tests/integration/bb-library/Payment/Adapter/CustomTest.php diff --git a/tests/bb-library/Payment/Adapter/PayPalEmail.php b/tests/integration/bb-library/Payment/Adapter/PayPalEmailTest.php similarity index 100% rename from tests/bb-library/Payment/Adapter/PayPalEmail.php rename to tests/integration/bb-library/Payment/Adapter/PayPalEmailTest.php diff --git a/tests/bb-library/Payment/Adapter/TwoCheckout.php b/tests/integration/bb-library/Payment/Adapter/TwoCheckoutTest.php similarity index 100% rename from tests/bb-library/Payment/Adapter/TwoCheckout.php rename to tests/integration/bb-library/Payment/Adapter/TwoCheckoutTest.php diff --git a/tests/bb-library/Payment/Adapter/WebMoney.php b/tests/integration/bb-library/Payment/Adapter/WebMoneyTest.php similarity index 100% rename from tests/bb-library/Payment/Adapter/WebMoney.php rename to tests/integration/bb-library/Payment/Adapter/WebMoneyTest.php diff --git a/tests/integration/bb-modules/mod_servicelicense/Api_Admin.php b/tests/integration/bb-modules/mod_servicelicense/Api_AdminTest.php similarity index 100% rename from tests/integration/bb-modules/mod_servicelicense/Api_Admin.php rename to tests/integration/bb-modules/mod_servicelicense/Api_AdminTest.php