File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
app/code/Magento/CatalogSearch
Model/Search/FilterMapper
Test/Unit/Model/Search/FilterMapper Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function apply(
101
101
'search_index.entity_id = %1$s.entity_id AND %1$s.attribute_id = %2$d AND %1$s.store_id = %3$d ' ,
102
102
$ alias ,
103
103
$ attribute ->getId (),
104
- $ this ->storeManager ->getWebsite ()->getId ()
104
+ $ this ->storeManager ->getStore ()->getId ()
105
105
);
106
106
$ select ->joinLeft (
107
107
[$ alias => $ this ->frontendResource ->getMainTable ()],
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Search \Request \FilterInterface ;
12
12
use Magento \Store \Model \StoreManagerInterface ;
13
13
use Magento \Framework \App \Config \ScopeConfigInterface ;
14
- use Magento \Store \Api \Data \WebsiteInterface ;
14
+ use Magento \Store \Api \Data \StoreInterface ;
15
15
use Magento \Framework \DB \Select ;
16
16
use Magento \Eav \Model \Config as EavConfig ;
17
17
use Magento \Catalog \Model \ResourceModel \Eav \Attribute ;
@@ -85,7 +85,7 @@ public function testApply()
85
85
$ attribute = $ this ->getMockBuilder (Attribute::class)
86
86
->disableOriginalConstructor ()
87
87
->getMock ();
88
- $ website = $ this ->getMockBuilder (WebsiteInterface ::class)
88
+ $ store = $ this ->getMockBuilder (StoreInterface ::class)
89
89
->disableOriginalConstructor ()
90
90
->getMock ();
91
91
@@ -99,9 +99,9 @@ public function testApply()
99
99
->method ('getAttribute ' )
100
100
->willReturn ($ attribute );
101
101
$ this ->storeManager ->expects ($ this ->once ())
102
- ->method ('getWebsite ' )
103
- ->willReturn ($ website );
104
- $ website ->expects ($ this ->once ())
102
+ ->method ('getStore ' )
103
+ ->willReturn ($ store );
104
+ $ store ->expects ($ this ->once ())
105
105
->method ('getId ' )
106
106
->willReturn (1 );
107
107
$ attribute ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments