Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 37f078b

Browse files
[Magento Community Engineering] Community Contributions - 2.3-develop
- merged latest code from mainline branch
2 parents 1546aa2 + 38d61b2 commit 37f078b

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/PriceRange.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function getMinimumProductPrice(SaleableInterface $product, StoreInterfa
8686
$priceProvider = $this->priceProviderPool->getProviderByProductType($product->getTypeId());
8787
$regularPrice = $priceProvider->getMinimalRegularPrice($product)->getValue();
8888
$finalPrice = $priceProvider->getMinimalFinalPrice($product)->getValue();
89-
$minPriceArray = $this->formatPrice($regularPrice, $finalPrice, $store);
89+
$minPriceArray = $this->formatPrice((float) $regularPrice, (float) $finalPrice, $store);
9090
$minPriceArray['model'] = $product;
9191
return $minPriceArray;
9292
}
@@ -103,7 +103,7 @@ private function getMaximumProductPrice(SaleableInterface $product, StoreInterfa
103103
$priceProvider = $this->priceProviderPool->getProviderByProductType($product->getTypeId());
104104
$regularPrice = $priceProvider->getMaximalRegularPrice($product)->getValue();
105105
$finalPrice = $priceProvider->getMaximalFinalPrice($product)->getValue();
106-
$maxPriceArray = $this->formatPrice($regularPrice, $finalPrice, $store);
106+
$maxPriceArray = $this->formatPrice((float) $regularPrice, (float) $finalPrice, $store);
107107
$maxPriceArray['model'] = $product;
108108
return $maxPriceArray;
109109
}

app/code/Magento/GraphQl/etc/graphql/di.xml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
99
<preference for="Magento\Framework\App\FrontControllerInterface" type="Magento\GraphQl\Controller\GraphQl" />
10+
<preference for="Magento\Framework\Authorization\RoleLocatorInterface" type="Magento\Webapi\Model\WebapiRoleLocator" />
1011
<type name="Magento\Authorization\Model\CompositeUserContext">
1112
<arguments>
1213
<argument name="userContexts" xsi:type="array">

dev/tests/static/testsuite/Magento/Test/Legacy/ModuleDBChangeTest.php

-15
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,6 @@ public static function setUpBeforeClass()
6464
}
6565
}
6666

67-
/**
68-
* Test changes for module.xml files
69-
*/
70-
public function testModuleXmlFiles()
71-
{
72-
if (!self::$actualBranch) {
73-
preg_match_all('|etc/module\.xml$|mi', self::$changedFileList, $matches);
74-
$this->assertEmpty(
75-
reset($matches),
76-
'module.xml changes for patch releases in non-actual branches are not allowed:' . PHP_EOL .
77-
implode(PHP_EOL, array_values(reset($matches)))
78-
);
79-
}
80-
}
81-
8267
/**
8368
* Test changes for files in Module Setup dir
8469
*/

0 commit comments

Comments
 (0)