File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
dev/tests/integration/testsuite/Magento/Checkout/_files Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Quote \Api \Data \CartInterface ;
13
13
use Magento \Quote \Api \Data \CartInterfaceFactory ;
14
14
use Magento \TestFramework \Helper \Bootstrap ;
15
+ use Magento \TestFramework \Workaround \Override \Fixture \Resolver ;
15
16
16
- require __DIR__ . '/../../Customer/_files/customer.php ' ;
17
- require __DIR__ . '/../../../Magento/Catalog/_files/second_product_simple.php ' ;
17
+
18
+ Resolver::getInstance ()->requireDataFixture ('Magento/Customer/_files/customer.php ' );
19
+ Resolver::getInstance ()->requireDataFixture ('Magento/Catalog/_files/second_product_simple.php ' );
18
20
19
21
$ objectManager = Bootstrap::getObjectManager ();
20
22
/** @var ProductRepositoryInterface $productRepository */
Original file line number Diff line number Diff line change 8
8
use Magento \Quote \Api \CartRepositoryInterface ;
9
9
use Magento \TestFramework \Helper \Bootstrap ;
10
10
use Magento \TestFramework \Quote \Model \GetQuoteByReservedOrderId ;
11
+ use Magento \TestFramework \Workaround \Override \Fixture \Resolver ;
11
12
12
13
$ objectManager = Bootstrap::getObjectManager ();
13
14
/** @var CartRepositoryInterface $quoteRepository */
19
20
$ quoteRepository ->delete ($ quote );
20
21
}
21
22
22
- require __DIR__ . ' /../../../ Magento/Catalog/_files/second_product_simple_rollback.php ' ;
23
- require __DIR__ . ' /../../ Customer/_files/customer_rollback.php ' ;
23
+ Resolver:: getInstance ()-> requireDataFixture ( ' Magento/Catalog/_files/second_product_simple_rollback.php ') ;
24
+ Resolver:: getInstance ()-> requireDataFixture ( ' Magento/ Customer/_files/customer_rollback.php ') ;
You can’t perform that action at this time.
0 commit comments