Skip to content

Commit 816bcc2

Browse files
author
Prabhu Ram
committed
MC-16073: POC to process a payment using Authorize.net method
- fixing static failures
1 parent 78486a9 commit 816bcc2

File tree

2 files changed

+2
-34
lines changed

2 files changed

+2
-34
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/Quote/Customer/SetAuthorizenetPaymentMethodOnCustomerCartTest.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @magentoDbIsolation disabled
2222
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2323
*/
24-
class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \Magento\TestFramework\Indexer\TestCase
24+
class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \PHPUnit\Framework\TestCase
2525
{
2626
const CONTENT_TYPE = 'application/json';
2727

@@ -40,22 +40,6 @@ class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \Magento\TestFramew
4040
/** @var Http */
4141
private $request;
4242

43-
/**
44-
* @throws \Magento\Framework\Exception\LocalizedException
45-
*/
46-
public static function setUpBeforeClass()
47-
{
48-
$db = Bootstrap::getInstance()->getBootstrap()
49-
->getApplication()
50-
->getDbInstance();
51-
if (!$db->isDbDumpExists()) {
52-
throw new \LogicException('DB dump does not exist.');
53-
}
54-
$db->restoreFromDbDump();
55-
56-
parent::setUpBeforeClass();
57-
}
58-
5943
protected function setUp() : void
6044
{
6145
$this->objectManager = Bootstrap::getObjectManager();

dev/tests/integration/testsuite/Magento/GraphQl/Quote/Guest/SetAuthorizeNetPaymentMethodOnGuestCartTest.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @magentoDbIsolation disabled
2121
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2222
*/
23-
class SetAuthorizeNetPaymentMethodOnGuestCartTest extends \Magento\TestFramework\Indexer\TestCase
23+
class SetAuthorizeNetPaymentMethodOnGuestCartTest extends \PHPUnit\Framework\TestCase
2424
{
2525
const CONTENT_TYPE = 'application/json';
2626

@@ -39,22 +39,6 @@ class SetAuthorizeNetPaymentMethodOnGuestCartTest extends \Magento\TestFramework
3939
/** @var Http */
4040
private $request;
4141

42-
/**
43-
* @inheritdoc
44-
*/
45-
public static function setUpBeforeClass()
46-
{
47-
$db = Bootstrap::getInstance()->getBootstrap()
48-
->getApplication()
49-
->getDbInstance();
50-
if (!$db->isDbDumpExists()) {
51-
throw new \LogicException('DB dump does not exist.');
52-
}
53-
$db->restoreFromDbDump();
54-
55-
parent::setUpBeforeClass();
56-
}
57-
5842
protected function setUp() : void
5943
{
6044
$this->objectManager = Bootstrap::getObjectManager();

0 commit comments

Comments
 (0)