Skip to content

Commit e29415e

Browse files
author
Marcel Moldovan
committed
Use store instead of website
1 parent 2c62aa3 commit e29415e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/CatalogSearch/Test/Unit/Model/Search/FilterMapper/TermDropdownStrategyTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\Framework\Search\Request\FilterInterface;
1212
use Magento\Store\Model\StoreManagerInterface;
1313
use Magento\Framework\App\Config\ScopeConfigInterface;
14-
use Magento\Store\Api\Data\WebsiteInterface;
14+
use Magento\Store\Api\Data\StoreInterface;
1515
use Magento\Framework\DB\Select;
1616
use Magento\Eav\Model\Config as EavConfig;
1717
use 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())

0 commit comments

Comments
 (0)