File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app/code/Magento/CatalogWidget/Model/Rule/Condition
dev/tests/integration/testsuite/Magento/CatalogWidget/Model/Rule/Condition Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,7 @@ public function loadAttributeOptions()
87
87
$ productAttributes = array_filter (
88
88
$ productAttributes ,
89
89
function ($ attribute ) {
90
- return $ attribute ->getFrontendLabel () &&
91
- $ attribute ->getFrontendInput () !== 'text ' &&
92
- $ attribute ->getAttributeCode () !== ProductInterface::STATUS ;
90
+ return $ attribute ->getFrontendLabel ();
93
91
}
94
92
);
95
93
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testLoadAttributeOptions()
43
43
$ this ->assertArrayHasKey (ProductInterface::SKU , $ options );
44
44
$ this ->assertArrayHasKey (ProductInterface::ATTRIBUTE_SET_ID , $ options );
45
45
$ this ->assertArrayHasKey ('category_ids ' , $ options );
46
- $ this ->assertArrayNotHasKey (ProductInterface::STATUS , $ options );
46
+ $ this ->assertArrayHasKey (ProductInterface::STATUS , $ options );
47
47
foreach ($ options as $ code => $ label ) {
48
48
$ this ->assertNotEmpty ($ label );
49
49
$ this ->assertNotEmpty ($ code );
You can’t perform that action at this time.
0 commit comments