Commit e9083db5 authored by 's avatar

version 100 required, unit tests

parent e4c4c10c
......@@ -8,6 +8,10 @@
<Shop4Version>405</Shop4Version>
<PluginID>jtl_paypal</PluginID>
<Install>
<Version nr="100">
<CreateDate>2015-06-04</CreateDate>
<SQL>install-100.sql</SQL>
</Version>
<Version nr="107">
<CreateDate>2017-03-01</CreateDate>
</Version>
......@@ -230,7 +234,7 @@ Referenznummer: %reference_number%]]></VariableLocalized>
<Name>PayPal Finance</Name>
<PictureURL>images/de-ppcc-logo-175px.png</PictureURL>
<Sort>1</Sort>
<SendMail>16</SendMail>
<SendMail>1</SendMail>
<Provider>PayPal</Provider>
<TSCode>PAYPAL</TSCode>
<PreOrder>1</PreOrder>
......
......@@ -19,7 +19,7 @@
</php>
<testsuites>
<testsuite name="ShopCli Test Suite">
<testsuite name="PayPal Test Suite">
<directory>./tests/PayPal/</directory>
</testsuite>
</testsuites>
......
......@@ -3,8 +3,13 @@
error_reporting(E_ALL);
ini_set('display_errors', 1);
$env = isset($_SERVER['SHOP'])
? $_SERVER['SHOP']
: getenv('SHOP');
// lookup shop environment
$shopPath = rtrim(getenv('SHOP'), '/\\');
$shopPath = rtrim($env, '/\\');
if (empty($shopPath)) {
die("Shop path not defined.\nUsage: 'SHOP=/path/to/shop phpunit'\n");
......@@ -20,4 +25,4 @@ require $shopPath . '/includes/globalinclude.php';
require __DIR__ . '/../vendor/autoload.php';
// move to setUp() in order to get rid of 'run' :>
Shop::run();
\ No newline at end of file
Shop::run();
CREATE TABLE `xplugin_jtl_paypal_additional_payment` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`paymentId` INT NOT NULL,
`sort` INT NOT NULL
);
......@@ -75,19 +75,6 @@ class PayPalFinance extends PaymentMethod
$this->currencyIso = gibStandardWaehrung(true);
//$this->paymentMethod = $this->getPaymentMethod();
$modus = $this->getModus();
$this->config = [
'mode' => $modus,
'acct1.UserName' => $this->settings["api_{$modus}_user"],
'acct1.Password' => $this->settings["api_{$modus}_pass"],
'acct1.Signature' => $this->settings["api_{$modus}_signatur"],
'cache.enabled' => true,
'cache.FileName' => PFAD_ROOT . PFAD_COMPILEDIR . 'paypalfinance.auth.cache',
];
parent::__construct($this->getModuleId());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment