Skip to content

Commit b6159e0

Browse files
committed
MC-30099: Inventory Sources and Stock is breaking the Category and CMS
1 parent 799f673 commit b6159e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/code/Magento/CatalogWidget/Test/Unit/Model/Rule/Condition/ProductTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,7 @@ public function testGetMappedSqlFieldSku()
102102
{
103103
$this->model->setAttribute('sku');
104104
$this->assertEquals('e.sku', $this->model->getMappedSqlField());
105+
$this->model->setAttribute('attribute_set_id');
106+
$this->assertEquals('e.attribute_set_id', $this->model->getMappedSqlField());
105107
}
106108
}

app/code/Magento/Rule/Test/Unit/Model/Condition/Product/AbstractProductTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ public function testGetMappedSqlField()
282282
{
283283
$this->_condition->setAttribute('category_ids');
284284
$this->assertEquals('e.entity_id', $this->_condition->getMappedSqlField());
285+
$this->_condition->setAttribute('attribute_set_id');
286+
$this->assertEquals('e.attribute_set_id', $this->_condition->getMappedSqlField());
285287
}
286288

287289
/**

0 commit comments

Comments
 (0)