Skip to content

Commit 60b8bd5

Browse files
committed
Merge remote-tracking branch 'adobe-commerce-tier-4/ACP2E-3374' into Tier4-Kings-PR-11-22-2024
2 parents 73b67ee + 86f82f8 commit 60b8bd5

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Source/TableTest.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -423,6 +423,17 @@ public static function getAllOptionsDataProvider()
423423
['value' => '16', 'label' => 'black'],
424424
['value' => '17', 'label' => 'white']
425425
]
426+
],
427+
[
428+
true,
429+
true,
430+
[['value' => '16', 'label' => 'default sv black'], ['value' => '17', 'label' => 'default sv white']],
431+
[['value' => '16', 'label' => 'black'], ['value' => '17', 'label' => 'white']],
432+
[
433+
['label' => ' ', 'value' => ''],
434+
['value' => '16', 'label' => 'black'],
435+
['value' => '17', 'label' => 'white']
436+
]
426437
]
427438
];
428439
}

app/code/Magento/Rule/Model/Condition/Product/AbstractProduct.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\Rule\Model\Condition\Product;
@@ -243,7 +243,7 @@ protected function _prepareValueOptions()
243243
} else {
244244
$addEmptyOption = true;
245245
}
246-
$selectOptions = $attributeObject->getSource()->getAllOptions($addEmptyOption);
246+
$selectOptions = $attributeObject->getSource()->getAllOptions($addEmptyOption, true);
247247
}
248248
}
249249

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -360,7 +360,7 @@ public function testPrepareValueOptions(
360360
$attrObjectSourceMock
361361
->expects((null === $expectedAttrObjSourceAllOptionsParam) ? $this->never() : $this->once())
362362
->method('getAllOptions')
363-
->with($expectedAttrObjSourceAllOptionsParam)
363+
->with($expectedAttrObjSourceAllOptionsParam, true)
364364
->willReturn($attrObjectSourceAllOptionsValue);
365365

366366
$attributeObjectMock = $this->getMockBuilder(Attribute::class)

0 commit comments

Comments
 (0)