@@ -27,13 +27,11 @@ |
||
| 27 | 27 | namespace Payone\Core\Test\Unit\Service\V1\Data; |
| 28 | 28 | |
| 29 | 29 | use Payone\Core\Service\V1\Addresscheck as ClassToTest; |
| 30 | -use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
|
| 31 | 30 | use Payone\Core\Model\Risk\Addresscheck; |
| 32 | 31 | use Magento\Quote\Api\Data\AddressInterface; |
| 33 | 32 | use Payone\Core\Service\V1\Data\AddresscheckResponse; |
| 34 | 33 | use Payone\Core\Service\V1\Data\AddresscheckResponseFactory; |
| 35 | 34 | use Payone\Core\Test\Unit\BaseTestCase; |
| 36 | -use Payone\Core\Test\Unit\PayoneObjectManager; |
|
| 37 | 35 | |
| 38 | 36 | class AddresscheckTest extends BaseTestCase |
| 39 | 37 | { |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | // preauthorization-orders and advance payment should not create an invoice |
| 126 | - if ($oOrder->getPayoneAuthmode() != 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT){ |
|
| 126 | + if ($oOrder->getPayoneAuthmode() != 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT) { |
|
| 127 | 127 | return; |
| 128 | 128 | } |
| 129 | 129 | |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | /** |
| 119 | 119 | * Checks if the given value is json encoded |
| 120 | 120 | * |
| 121 | - * @param $sValue |
|
| 121 | + * @param string $sValue |
|
| 122 | 122 | * @return bool |
| 123 | 123 | */ |
| 124 | 124 | protected function isJson($sValue) |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | /** |
| 181 | 181 | * Remove banned paymenttypes |
| 182 | 182 | * |
| 183 | - * @param array $aPaymentMethods |
|
| 183 | + * @param MethodInterface[] $aPaymentMethods |
|
| 184 | 184 | * @param Quote $oQuote |
| 185 | 185 | * @return array |
| 186 | 186 | */ |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote) |
| 188 | 188 | { |
| 189 | 189 | $aBannedMethos = $this->getBannedPaymentMethods($oQuote); |
| 190 | - for($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 190 | + for ($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 191 | 191 | $sCode = $aPaymentMethods[$i]->getCode(); |
| 192 | 192 | if (array_key_exists($sCode, $aBannedMethos) !== false) { |
| 193 | 193 | $iBannedUntil = strtotime($aBannedMethos[$sCode]); |