Skip to content

Commit bac659e

Browse files
committed
ACP2E-3374: In Backend, default store values for product attributes (instead of expected admin values)
1 parent 0a5586e commit bac659e

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

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

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,8 @@ private function verifySelectAllOptions(
461461
$collectionFactory = $this->getMockBuilder(CollectionFactory::class)
462462
->addMethods(
463463
[
464-
'setPositionOrder',
465-
'setAttributeFilter',
466-
'addFieldToFilter',
467-
'setStoreFilter',
468-
'load',
469-
'toOptionArray'
464+
'setPositionOrder', 'setAttributeFilter', 'addFieldToFilter',
465+
'setStoreFilter', 'load', 'toOptionArray'
470466
]
471467
)
472468
->onlyMethods(['create'])
@@ -478,10 +474,7 @@ private function verifySelectAllOptions(
478474
->disableOriginalConstructor()
479475
->getMock();
480476

481-
$attrOptionFactory = $this->createPartialMock(
482-
OptionFactory::class,
483-
['create']
484-
);
477+
$attrOptionFactory = $this->createPartialMock(OptionFactory::class, ['create']);
485478

486479
$abstractAttributeMock = $this->getMockBuilder(AbstractAttribute::class)
487480
->addMethods(['getStoreId'])
@@ -539,10 +532,7 @@ private function verifySelectAllOptions(
539532
$collectionFactory->expects($this->once())
540533
->method('load')
541534
->willReturn($attributeOptionCollectionMock);
542-
$options = [
543-
['value' => '16', 'label' => 'default sv black'],
544-
['value' => '17', 'label' => 'default sv white']
545-
];
535+
$options = [['value' => '16', 'label' => 'default sv black'], ['value' => '17', 'label' => 'default sv white']];
546536
$optionsDefault = [['value' => '16', 'label' => 'black'], ['value' => '17', 'label' => 'white']];
547537
$attributeOptionCollectionMock->expects($this->any())
548538
->method('toOptionArray')

0 commit comments

Comments
 (0)