File tree Expand file tree Collapse file tree 2 files changed +4
-28
lines changed
dev/tests/integration/testsuite/Magento/AuthorizenetGraphQl/Model/Resolver Expand file tree Collapse file tree 2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \GraphQl \Quote \GetMaskedQuoteIdByReservedOrderId ;
14
14
use Magento \Integration \Api \CustomerTokenServiceInterface ;
15
15
use Magento \TestFramework \Helper \Bootstrap ;
16
+ use PHPUnit \Framework \TestCase ;
16
17
17
18
/**
18
19
* Tests SetPaymentMethod mutation for customer via authorizeNet payment
21
22
* @magentoDbIsolation disabled
22
23
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23
24
*/
24
- class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \ Magento \ TestFramework \ Indexer \ TestCase
25
+ class SetAuthorizenetPaymentMethodOnCartTest extends TestCase
25
26
{
26
27
const CONTENT_TYPE = 'application/json ' ;
27
28
@@ -44,19 +45,6 @@ class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \Magento\TestFramew
44
45
/** @var Http */
45
46
private $ request ;
46
47
47
- public static function setUpBeforeClass ()
48
- {
49
- $ db = Bootstrap::getInstance ()->getBootstrap ()
50
- ->getApplication ()
51
- ->getDbInstance ();
52
- if (!$ db ->isDbDumpExists ()) {
53
- throw new \LogicException ('DB dump does not exist. ' );
54
- }
55
- $ db ->restoreFromDbDump ();
56
-
57
- parent ::setUpBeforeClass ();
58
- }
59
-
60
48
protected function setUp () : void
61
49
{
62
50
$ this ->objectManager = Bootstrap::getObjectManager ();
Original file line number Diff line number Diff line change 12
12
use Magento \GraphQl \Controller \GraphQl ;
13
13
use Magento \GraphQl \Quote \GetMaskedQuoteIdByReservedOrderId ;
14
14
use Magento \TestFramework \Helper \Bootstrap ;
15
+ use PHPUnit \Framework \TestCase ;
15
16
16
17
/**
17
18
* Tests SetPaymentMethod mutation for guest via authorizeNet payment
20
21
* @magentoDbIsolation disabled
21
22
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22
23
*/
23
- class SetAuthorizeNetPaymentMethodOnGuestCartTest extends \ Magento \ TestFramework \ Indexer \ TestCase
24
+ class SetAuthorizeNetPaymentMethodOnCartTest extends TestCase
24
25
{
25
26
const CONTENT_TYPE = 'application/json ' ;
26
27
@@ -39,19 +40,6 @@ class SetAuthorizeNetPaymentMethodOnGuestCartTest extends \Magento\TestFramework
39
40
/** @var Http */
40
41
private $ request ;
41
42
42
- public static function setUpBeforeClass ()
43
- {
44
- $ db = Bootstrap::getInstance ()->getBootstrap ()
45
- ->getApplication ()
46
- ->getDbInstance ();
47
- if (!$ db ->isDbDumpExists ()) {
48
- throw new \LogicException ('DB dump does not exist. ' );
49
- }
50
- $ db ->restoreFromDbDump ();
51
-
52
- parent ::setUpBeforeClass ();
53
- }
54
-
55
43
protected function setUp () : void
56
44
{
57
45
$ this ->objectManager = Bootstrap::getObjectManager ();
You can’t perform that action at this time.
0 commit comments