Skip to content

Commit 035fb94

Browse files
author
Prabhu Ram
committed
MC-31420: [GraphQL] Flat Rate shipping amount is returned as $10 instead of $5 for 1st configurable product in cart.
- fixed jenkins failures
1 parent d026e02 commit 035fb94

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetAvailableShippingMethodsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function testGetAvailableShippingMethods()
8787
*
8888
* @magentoApiDataFixture Magento/Customer/_files/customer.php
8989
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
90+
* @magentoApiDataFixture Magento/CatalogRule/_files/configurable_product.php
9091
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_configurable_product.php
9192
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
9293
*/

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetAvailableShippingMethodsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function testGetAvailableShippingMethods()
8585
* Test case: get available shipping methods from current customer quote with configurable product
8686
*
8787
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
88+
* @magentoApiDataFixture Magento/CatalogRule/_files/configurable_product.php
8889
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_configurable_product.php
8990
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
9091
*/

dev/tests/integration/testsuite/Magento/GraphQl/Quote/_files/add_configurable_product.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use Magento\Quote\Model\ResourceModel\Quote as QuoteResource;
1212
use Magento\TestFramework\Helper\Bootstrap;
1313

14-
require __DIR__.'/../../../ConfigurableProduct/_files/product_configurable.php';
15-
1614
/** @var ProductRepositoryInterface $productRepository */
1715
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
1816
/** @var QuoteFactory $quoteFactory */
@@ -28,6 +26,10 @@
2826
$options = Bootstrap::getObjectManager()->create(
2927
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection::class
3028
);
29+
30+
$attributeRepository = Bootstrap::getObjectManager()->get(\Magento\Eav\Api\AttributeRepositoryInterface::class);
31+
$attribute = $attributeRepository->get('catalog_product', 'test_configurable');
32+
3133
$option = $options->setAttributeFilter($attribute->getId())->getFirstItem();
3234

3335
$requestInfo = new \Magento\Framework\DataObject(

0 commit comments

Comments
 (0)