public function testGetCountryStore() { $countryCode = 3; $countryStore = 2; $this->scopeConfig->expects($this->once())->method('getWebsiteValue')->with("tobai_geo_store_switcher/{$countryCode}/store")->willReturn($countryStore); $this->assertEquals($countryStore, $this->configGeneral->getCountryStore($countryCode)); }
/** * @param string $countryCode * @return int|bool */ public function getStoreId($countryCode) { return $this->isRuleForCountry($countryCode) ? $this->generalConfig->getCountryStore($countryCode) : false; }