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(
101101 'search_index.entity_id = %1$s.entity_id AND %1$s.attribute_id = %2$d AND %1$s.store_id = %3$d ' ,
102102 $ alias ,
103103 $ attribute ->getId (),
104- $ this ->storeManager ->getWebsite ()->getId ()
104+ $ this ->storeManager ->getStore ()->getId ()
105105 );
106106 $ select ->joinLeft (
107107 [$ alias => $ this ->frontendResource ->getMainTable ()],
Original file line number Diff line number Diff line change 1111use Magento \Framework \Search \Request \FilterInterface ;
1212use Magento \Store \Model \StoreManagerInterface ;
1313use Magento \Framework \App \Config \ScopeConfigInterface ;
14- use Magento \Store \Api \Data \WebsiteInterface ;
14+ use Magento \Store \Api \Data \StoreInterface ;
1515use Magento \Framework \DB \Select ;
1616use Magento \Eav \Model \Config as EavConfig ;
1717use Magento \Catalog \Model \ResourceModel \Eav \Attribute ;
@@ -85,7 +85,7 @@ public function testApply()
8585 $ attribute = $ this ->getMockBuilder (Attribute::class)
8686 ->disableOriginalConstructor ()
8787 ->getMock ();
88- $ website = $ this ->getMockBuilder (WebsiteInterface ::class)
88+ $ store = $ this ->getMockBuilder (StoreInterface ::class)
8989 ->disableOriginalConstructor ()
9090 ->getMock ();
9191
@@ -99,9 +99,9 @@ public function testApply()
9999 ->method ('getAttribute ' )
100100 ->willReturn ($ attribute );
101101 $ 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 ())
105105 ->method ('getId ' )
106106 ->willReturn (1 );
107107 $ attribute ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments