Skip to content

Commit b6c5198

Browse files
committed
MAGETWO-54733: Unable to save product with all unchecked values for multiple select attribute #7687
1 parent 85db4c8 commit b6c5198

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Backend

1 file changed

+2
-1
lines changed

app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Backend/ArrayTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ protected function setUp()
3737
public function testValidate($data)
3838
{
3939
$this->_attribute->expects($this->atLeastOnce())->method('getAttributeCode')->will($this->returnValue('code'));
40-
$product = new \Magento\Framework\DataObject(['code' => $data]);
40+
$product = new \Magento\Framework\DataObject(['code' => $data, 'empty' => '']);
4141
$this->_model->validate($product);
4242
$this->assertEquals('1,2,3', $product->getCode());
43+
$this->assertEquals(null, $product->getEmpty());
4344
}
4445

4546
public static function attributeValueDataProvider()

0 commit comments

Comments
 (0)