Skip to content

Commit 8ce538f

Browse files
authored
Merge pull request #1321 from magento-east/pr-2.0.16
EAST fixbugs 2.0.16
2 parents ff9e35a + 84e9a72 commit 8ce538f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/code/Magento/CatalogInventory/Model/Stock/Status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getWebsiteId()
9999
*/
100100
public function getStockId()
101101
{
102-
return $this->getData(self::KEY_WEBSITE_ID);
102+
return $this->getData(self::KEY_STOCK_ID);
103103
}
104104

105105
/**

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@
401401
<data name="product/data/name" xsi:type="string">simple%isolation%</data>
402402
<data name="product/data/sku" xsi:type="string">simple%isolation%</data>
403403
<data name="product/data/price/value" xsi:type="string">10</data>
404+
<data name="product/data/quantity_and_stock_status/qty" xsi:type="string">1000</data>
405+
<data name="product/data/quantity_and_stock_status/is_in_stock" xsi:type="string">In Stock</data>
404406
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
405407
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCategory" />
406408
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />

dev/tests/functional/tests/app/Magento/Tax/Test/Block/Adminhtml/Rule/Edit/Form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public function getAllTaxRates()
338338
*/
339339
public function isTaxRateAvailable($value)
340340
{
341+
$this->waitForTaxRates();
341342
/** @var \Magento\Mtf\Client\Element\MultiselectlistElement $taxRate */
342343
$taxRate = $this->_rootElement->find($this->taxRateBlock, Locator::SELECTOR_CSS, 'multiselectlist');
343344
return $taxRate->isValueVisible($value);

0 commit comments

Comments
 (0)