File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
api-functional/testsuite/Magento/GraphQl/Quote
integration/testsuite/Magento/GraphQl/Quote/_files Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ public function testGetAvailableShippingMethods()
87
87
*
88
88
* @magentoApiDataFixture Magento/Customer/_files/customer.php
89
89
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
90
+ * @magentoApiDataFixture Magento/CatalogRule/_files/configurable_product.php
90
91
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_configurable_product.php
91
92
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
92
93
*/
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ public function testGetAvailableShippingMethods()
85
85
* Test case: get available shipping methods from current customer quote with configurable product
86
86
*
87
87
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
88
+ * @magentoApiDataFixture Magento/CatalogRule/_files/configurable_product.php
88
89
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_configurable_product.php
89
90
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
90
91
*/
Original file line number Diff line number Diff line change 11
11
use Magento \Quote \Model \ResourceModel \Quote as QuoteResource ;
12
12
use Magento \TestFramework \Helper \Bootstrap ;
13
13
14
- require __DIR__ .'/../../../ConfigurableProduct/_files/product_configurable.php ' ;
15
-
16
14
/** @var ProductRepositoryInterface $productRepository */
17
15
$ productRepository = Bootstrap::getObjectManager ()->get (ProductRepositoryInterface::class);
18
16
/** @var QuoteFactory $quoteFactory */
28
26
$ options = Bootstrap::getObjectManager ()->create (
29
27
\Magento \Eav \Model \ResourceModel \Entity \Attribute \Option \Collection::class
30
28
);
29
+
30
+ $ attributeRepository = Bootstrap::getObjectManager ()->get (\Magento \Eav \Api \AttributeRepositoryInterface::class);
31
+ $ attribute = $ attributeRepository ->get ('catalog_product ' , 'test_configurable ' );
32
+
31
33
$ option = $ options ->setAttributeFilter ($ attribute ->getId ())->getFirstItem ();
32
34
33
35
$ requestInfo = new \Magento \Framework \DataObject (
You can’t perform that action at this time.
0 commit comments