@@ -124,7 +124,7 @@ |
||
124 | 124 | * |
125 | 125 | * @param string $sText |
126 | 126 | * @param string $aSubstitutionArray |
127 | - * @param int|bool $iMaxLength |
|
127 | + * @param integer $iMaxLength |
|
128 | 128 | * @return string |
129 | 129 | */ |
130 | 130 | public function handleSubstituteReplacement($sText, $aSubstitutionArray, $iMaxLength = false) |
@@ -28,10 +28,8 @@ |
||
28 | 28 | |
29 | 29 | use Payone\Core\Controller\Onepage\Redirect as ClassToTest; |
30 | 30 | use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
31 | -use Magento\Sales\Model\Order as OrderCore; |
|
32 | 31 | use Magento\Checkout\Model\Session; |
33 | 32 | use Magento\Framework\App\Action\Context; |
34 | -use Magento\Customer\Model\Session as CustomerSession; |
|
35 | 33 | use Magento\Store\App\Response\Redirect as RedirectResponse; |
36 | 34 | use Magento\Framework\App\Console\Response; |
37 | 35 | use Magento\Framework\UrlInterface; |
@@ -28,10 +28,8 @@ |
||
28 | 28 | |
29 | 29 | use Payone\Core\Controller\Onepage\Returned as ClassToTest; |
30 | 30 | use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
31 | -use Magento\Sales\Model\Order as OrderCore; |
|
32 | 31 | use Magento\Checkout\Model\Session; |
33 | 32 | use Magento\Framework\App\Action\Context; |
34 | -use Magento\Customer\Model\Session as CustomerSession; |
|
35 | 33 | use Magento\Store\App\Response\Redirect as RedirectResponse; |
36 | 34 | use Magento\Framework\App\Console\Response; |
37 | 35 | use Magento\Framework\App\ResponseInterface; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | |
29 | 29 | use Payone\Core\Controller\Paypal\Express as ClassToTest; |
30 | 30 | use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
31 | -use Magento\Sales\Model\Order as OrderCore; |
|
32 | 31 | use Magento\Framework\Controller\Result\Redirect; |
33 | 32 | use Magento\Checkout\Model\Session; |
34 | 33 | use Magento\Framework\Controller\ResultFactory; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | |
29 | 29 | use Payone\Core\Controller\Paypal\Returned as ClassToTest; |
30 | 30 | use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
31 | -use Magento\Sales\Model\Order as OrderCore; |
|
32 | 31 | use Magento\Framework\Controller\Result\Redirect; |
33 | 32 | use Magento\Checkout\Model\Session; |
34 | 33 | use Payone\Core\Model\Paypal\ReturnHandler; |
@@ -28,11 +28,10 @@ |
||
28 | 28 | |
29 | 29 | use Magento\Payment\Model\Method\AbstractMethod; |
30 | 30 | use Magento\Sales\Model\Order; |
31 | -use Payone\Core\Model\Methods\Paydirekt as ClassToTest; |
|
31 | +use Payone\Core\Model\Methods\Paydirekt; |
|
32 | 32 | use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
33 | 33 | use Payone\Core\Helper\Shop; |
34 | 34 | use Magento\Framework\App\Config\ScopeConfigInterface; |
35 | -use Payone\Core\Model\Methods\Paydirekt; |
|
36 | 35 | use Payone\Core\Model\PayoneConfig; |
37 | 36 | use Magento\Payment\Model\Info; |
38 | 37 | use Payone\Core\Model\Api\Request\Authorization; |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * Get fallback template |
170 | 170 | * |
171 | 171 | * @param string $sCompany |
172 | - * @return mixed |
|
172 | + * @return string |
|
173 | 173 | */ |
174 | 174 | protected function getFallbackText($sCompany) |
175 | 175 | { |
@@ -26,8 +26,6 @@ |
||
26 | 26 | |
27 | 27 | namespace Payone\Core\Model\Api\Payolution; |
28 | 28 | |
29 | -use Locale; |
|
30 | - |
|
31 | 29 | /** |
32 | 30 | * Class for requesting the privacy declaration from payolution |
33 | 31 | */ |
@@ -170,7 +170,6 @@ |
||
170 | 170 | * Method to trigger the Payone genericpayment request pre-check |
171 | 171 | * |
172 | 172 | * @param float $dAmount |
173 | - * @param string|bool $sBirthday |
|
174 | 173 | * @return array |
175 | 174 | * @throws LocalizedException |
176 | 175 | */ |
@@ -28,7 +28,6 @@ |
||
28 | 28 | |
29 | 29 | use Payone\Core\Model\PayoneConfig; |
30 | 30 | use Magento\Sales\Model\Order; |
31 | -use Magento\Payment\Model\InfoInterface; |
|
32 | 31 | use Magento\Framework\Exception\LocalizedException; |
33 | 32 | use Payone\Core\Model\Methods\PayoneMethod; |
34 | 33 | use Magento\Framework\DataObject; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * Class constructor |
35 | 35 | * |
36 | - * @param \PHPUnit_Framework_TestCase $testObject |
|
36 | + * @param \Payone\Core\Test\Unit\BaseTestCase $testObject |
|
37 | 37 | */ |
38 | 38 | public function __construct($testObject) |
39 | 39 | { |