File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed
CatalogWidget/Test/Unit/Model/Rule/Condition
dev/tests/api-functional/testsuite/Magento/Catalog/Api Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © 2016 Magento. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © 2016 Magento. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © 2016 Magento. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
7
-
8
6
namespace Magento \Catalog \Model ;
9
7
10
8
use Magento \Catalog \Api \CategoryListInterface ;
@@ -24,22 +22,22 @@ class CategoryList implements CategoryListInterface
24
22
/**
25
23
* @var CollectionFactory
26
24
*/
27
- protected $ categoryCollectionFactory ;
25
+ private $ categoryCollectionFactory ;
28
26
29
27
/**
30
28
* @var JoinProcessorInterface
31
29
*/
32
- protected $ extensionAttributesJoinProcessor ;
30
+ private $ extensionAttributesJoinProcessor ;
33
31
34
32
/**
35
33
* @var CategorySearchResultsInterfaceFactory
36
34
*/
37
- protected $ categorySearchResultsFactory ;
35
+ private $ categorySearchResultsFactory ;
38
36
39
37
/**
40
38
* @var CategoryRepositoryInterface
41
39
*/
42
- protected $ categoryRepository ;
40
+ private $ categoryRepository ;
43
41
44
42
/**
45
43
* @param CollectionFactory $categoryCollectionFactory
@@ -100,6 +98,8 @@ public function getList(SearchCriteriaInterface $searchCriteria)
100
98
}
101
99
102
100
/**
101
+ * Add filter group to collection
102
+ *
103
103
* @param FilterGroup $filterGroup
104
104
* @param Collection $collection
105
105
* @return void
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ protected function setUp()
35
35
->disableOriginalConstructor ()
36
36
->getMock ();
37
37
$ arguments ['conditionFactory ' ] = $ this ->conditionFactory ;
38
+ $ arguments ['excludedAttributes ' ] = ['excluded_attribute ' ];
38
39
39
40
$ this ->condition = $ objectManagerHelper ->getObject (
40
41
'Magento\CatalogWidget\Model\Rule\Condition\Combine ' ,
@@ -56,6 +57,7 @@ public function testGetNewChildSelectOptions()
56
57
$ attributeOptions = [
57
58
'sku ' => 'SKU ' ,
58
59
'category ' => 'Category ' ,
60
+ 'excluded_attribute ' => 'Excluded attribute ' ,
59
61
];
60
62
$ productCondition = $ this ->getMockBuilder ('\Magento\CatalogWidget\Model\Rule\Condition\Product ' )
61
63
->setMethods (['loadAttributeOptions ' , 'getAttributeOption ' ])
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © 2016 Magento. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
You can’t perform that action at this time.
0 commit comments