public function testGetFrontendWebsiteOrBackendValueBackendStoreScope() { $path = 'test-path'; $this->appStateHelper->expects($this->once())->method('isFrontendArea')->willReturn(false); $this->scopeDefiner->expects($this->atLeastOnce())->method('getScope')->willReturn(ScopeInterface::SCOPE_STORE); $this->scopeDefiner->expects($this->never())->method('getScopeValue'); $this->appScopeConfig->expects($this->never())->method('getValue'); $this->assertEmpty($this->scopeConfig->getFrontendWebsiteOrBackendValue($path)); }
/** * @param int $group * @return array */ public function getGroupCountryList($group) { $countriesData = $this->scopeConfig->getFrontendWebsiteOrBackendValue("tobai_geo_store_switcher/group_{$group}/country_list"); $countries = !empty($countriesData) ? explode(',', $countriesData) : []; return $countries; }