File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
app/code/Magento/CatalogSearch/Test/Unit/Model/Search Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ function ($table) {
119
119
->method ('getStore ' )
120
120
->willReturn ($ this ->store );
121
121
$ this ->attributeCollection = $ this ->getMockBuilder (
122
- \Magento \Catalog \Model \ResourceModel \Product \Attribute \Collection::class
122
+ ' \Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection '
123
123
)
124
124
->disableOriginalConstructor ()
125
125
->getMock ();
@@ -129,11 +129,8 @@ function ($table) {
129
129
->setMethods (['create ' ])
130
130
->disableOriginalConstructor ()
131
131
->getMock ();
132
- $ attributeCollectionFactory ->expects ($ this ->once ())
133
- ->method ('create ' )
134
- ->willReturn ($ this ->attributeCollection );
135
- $ this ->attributeCollection ->expects ($ this ->never ())
136
- ->method ('getItemByColumnValue ' );
132
+ $ attributeCollectionFactory ->expects ($ this ->never ())
133
+ ->method ('create ' );
137
134
$ this ->eavConfig = $ this ->getMockBuilder (\Magento \Eav \Model \Config::class)
138
135
->setMethods (['getAttribute ' ])
139
136
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments