@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use Magento\Quote\Api\Data\AddressInterface; |
| 33 | 33 | use Magento\Framework\Model\ResourceModel\Db\Context; |
| 34 | 34 | use Magento\Framework\App\ResourceConnection; |
| 35 | -use Magento\Framework\DB\Adapter\AdapterInterface; |
|
| 36 | 35 | use Payone\Core\Test\Unit\BaseTestCase; |
| 37 | 36 | use Payone\Core\Test\Unit\PayoneObjectManager; |
| 38 | 37 | use Magento\Framework\DB\Select; |
@@ -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 | { |
@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | namespace Payone\Core\Test\Unit\Service\V1\Data; |
| 28 | 28 | |
| 29 | 29 | use Payone\Core\Service\V1\InstallmentPlan as ClassToTest; |
| 30 | -use Magento\Framework\TestFramework\Unit\Helper\ObjectManager; |
|
| 31 | 30 | use Payone\Core\Service\V1\Data\InstallmentPlanResponse; |
| 32 | 31 | use Payone\Core\Api\Data\InstallmentPlanResponseInterfaceFactory; |
| 33 | 32 | use Magento\Checkout\Model\Session; |
@@ -36,7 +35,6 @@ discard block |
||
| 36 | 35 | use Payone\Core\Model\Api\Request\Genericpayment\Calculation; |
| 37 | 36 | use Payone\Core\Block\Payolution\InstallmentPlan; |
| 38 | 37 | use Payone\Core\Test\Unit\BaseTestCase; |
| 39 | -use Payone\Core\Test\Unit\PayoneObjectManager; |
|
| 40 | 38 | |
| 41 | 39 | class InstallmentPlanTest extends BaseTestCase |
| 42 | 40 | { |
@@ -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) |