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 @@ + + + + + + + + + + + + + diff --git a/tests/bb-library/Payment/Adapter/Custom.php b/tests/integration/bb-library/Payment/Adapter/CustomTest.php similarity index 75% rename from tests/bb-library/Payment/Adapter/Custom.php rename to tests/integration/bb-library/Payment/Adapter/CustomTest.php index 46e6b0bb2..b609754b4 100644 --- a/tests/bb-library/Payment/Adapter/Custom.php +++ b/tests/integration/bb-library/Payment/Adapter/CustomTest.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/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