@@ -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; |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | use Magento\Payment\Model\InfoInterface; |
| 39 | 39 | use Magento\Framework\Exception\LocalizedException; |
| 40 | 40 | use Magento\Framework\Event\Observer; |
| 41 | -use Magento\Store\Model\ScopeInterface; |
|
| 42 | 41 | |
| 43 | 42 | class CheckoutSubmitBeforeTest extends \PHPUnit_Framework_TestCase |
| 44 | 43 | { |
@@ -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; |
@@ -235,7 +235,6 @@ |
||
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | 237 | * Send the previously prepared request, log request and response into the database and return the response |
| 238 | - |
|
| 239 | 238 | * @return array |
| 240 | 239 | */ |
| 241 | 240 | protected function send() |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace Payone\Core\Helper; |
| 28 | 28 | |
| 29 | -use Payone\Core\Model\PayoneConfig; |
|
| 30 | 29 | use Payone\Core\Model\Methods\PayoneMethod; |
| 31 | 30 | use Magento\Sales\Model\Order as SalesOrder; |
| 32 | 31 | |