File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Bundle Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 18
18
use Magento \Quote \Model \QuoteIdToMaskedQuoteIdInterface ;
19
19
use Magento \Quote \Model \ResourceModel \Quote as QuoteResource ;
20
20
use Magento \TestFramework \Fixture \DataFixture ;
21
+ use Magento \TestFramework \Fixture \DataFixtureStorage ;
22
+ use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
21
23
22
24
/**
23
25
* Test adding bundled products to cart
@@ -44,6 +46,11 @@ class AddBundleProductToCartTest extends GraphQlAbstract
44
46
*/
45
47
private $ productRepository ;
46
48
49
+ /**
50
+ * @var DataFixtureStorage
51
+ */
52
+ private $ fixtures ;
53
+
47
54
/**
48
55
* @inheritdoc
49
56
*/
@@ -54,6 +61,7 @@ protected function setUp(): void
54
61
$ this ->quote = $ objectManager ->create (Quote::class);
55
62
$ this ->quoteIdToMaskedId = $ objectManager ->get (QuoteIdToMaskedQuoteIdInterface::class);
56
63
$ this ->productRepository = $ objectManager ->get (ProductRepositoryInterface::class);
64
+ $ this ->fixtures = $ objectManager ->get (DataFixtureStorageManager::class)->getStorage ();
57
65
}
58
66
59
67
/**
@@ -413,7 +421,8 @@ public function testAddBundleToCartWithEmptyMultiselectOptionValue()
413
421
'reserved_order_id '
414
422
);
415
423
$ sku = 'bundle-product-multiselect-checkbox-options ' ;
416
- $ product = $ this ->productRepository ->get ($ sku );
424
+
425
+ $ product = $ this ->fixtures ->get ($ sku );
417
426
418
427
/** @var $typeInstance \Magento\Bundle\Model\Product\Type */
419
428
$ typeInstance = $ product ->getTypeInstance ();
You can’t perform that action at this time.
0 commit comments