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