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 1818use Magento \Quote \Model \QuoteIdToMaskedQuoteIdInterface ;
1919use Magento \Quote \Model \ResourceModel \Quote as QuoteResource ;
2020use Magento \TestFramework \Fixture \DataFixture ;
21+ use Magento \TestFramework \Fixture \DataFixtureStorage ;
22+ use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
2123
2224/**
2325 * Test adding bundled products to cart
@@ -44,6 +46,11 @@ class AddBundleProductToCartTest extends GraphQlAbstract
4446 */
4547 private $ productRepository ;
4648
49+ /**
50+ * @var DataFixtureStorage
51+ */
52+ private $ fixtures ;
53+
4754 /**
4855 * @inheritdoc
4956 */
@@ -54,6 +61,7 @@ protected function setUp(): void
5461 $ this ->quote = $ objectManager ->create (Quote::class);
5562 $ this ->quoteIdToMaskedId = $ objectManager ->get (QuoteIdToMaskedQuoteIdInterface::class);
5663 $ this ->productRepository = $ objectManager ->get (ProductRepositoryInterface::class);
64+ $ this ->fixtures = $ objectManager ->get (DataFixtureStorageManager::class)->getStorage ();
5765 }
5866
5967 /**
@@ -413,7 +421,8 @@ public function testAddBundleToCartWithEmptyMultiselectOptionValue()
413421 'reserved_order_id '
414422 );
415423 $ sku = 'bundle-product-multiselect-checkbox-options ' ;
416- $ product = $ this ->productRepository ->get ($ sku );
424+
425+ $ product = $ this ->fixtures ->get ($ sku );
417426
418427 /** @var $typeInstance \Magento\Bundle\Model\Product\Type */
419428 $ typeInstance = $ product ->getTypeInstance ();
You can’t perform that action at this time.
0 commit comments