Skip to content

Commit 2a343dd

Browse files
committed
Fix static and integration tests.
1 parent 12498b5 commit 2a343dd

File tree

8 files changed

+10
-2
lines changed

8 files changed

+10
-2
lines changed

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ public function refund($creditmemo)
684684
$gateway->refund($this, $baseAmountToRefund);
685685

686686
$creditmemo->setTransactionId($this->getLastTransId());
687+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
687688
} catch (\Magento\Framework\Exception\LocalizedException $e) {
688689
if (!$captureTxn) {
689690
throw new \Magento\Framework\Exception\LocalizedException(

app/code/Magento/Sales/Model/RefundOrder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Sales\Model;
78

89
use Magento\Framework\App\ResourceConnection;

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Sales\Test\Unit\Model\Order;
78

89
use Magento\Framework\Model\Context;

app/code/Magento/Sales/Test/Unit/Model/RefundOrderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Sales\Test\Unit\Model;
78

89
use Magento\Framework\App\ResourceConnection;

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/RefundOrderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Sales\Service\V1;
78

89
use Magento\Sales\Model\Order;

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Creditmemo/SaveTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
use Magento\Framework\App\Request\Http as HttpRequest;
1111
use Magento\Sales\Api\Data\OrderItemInterface;
1212
use Magento\Sales\Model\Order;
13-
use Magento\TestFramework\TestCase\AbstractBackendController;
1413
use PHPUnit\Framework\Constraint\StringContains;
1514

1615
/**
1716
* Provide tests for CreditMemo save controller.
1817
*
18+
* @magentoDbIsolation enabled
1919
* @magentoAppArea adminhtml
20+
* @magentoDataFixture Magento/Sales/_files/invoice.php
2021
*/
21-
class SaveTest extends AbstractBackendController
22+
class SaveTest extends AbstractCreditmemoControllerTest
2223
{
2324
/**
2425
* @var string

dev/tests/integration/testsuite/Magento/Sales/_files/order_with_invoice_and_custom_status.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Sales\Model\Order\Status;
99
use Magento\TestFramework\Helper\Bootstrap;
1010

11+
// phpcs:ignore Magento2.Security.IncludeFile
1112
require 'invoice.php';
1213

1314
$orderStatus = Bootstrap::getObjectManager()->create(Status::class);

dev/tests/integration/testsuite/Magento/Sales/_files/order_with_invoice_and_custom_status_rollback.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Sales\Model\Order\Status;
99
use Magento\TestFramework\Helper\Bootstrap;
1010

11+
// phpcs:ignore Magento2.Security.IncludeFile
1112
require 'default_rollback.php';
1213

1314
/** @var Status $orderStatus */

0 commit comments

Comments
 (0)