/**
  * @param string $countryCode
  * @return bool
  */
 protected function isRuleForCountry($countryCode)
 {
     return in_array($countryCode, $this->generalConfig->getCountryList());
 }
 /**
  * @param string $countriesData
  * @param array $countriesList
  * @dataProvider getCountryListDataProvider
  */
 public function testGetCountryList($countriesData, $countriesList)
 {
     $this->scopeConfig->expects($this->once())->method('getFrontendStoreOrBackendValue')->with('tobai_geo_store_switcher/general/active')->willReturn(true);
     $this->scopeConfig->expects($this->any())->method('getFrontendWebsiteOrBackendValue')->willReturnMap([['tobai_geo_store_switcher/general/by_countries', true], ['tobai_geo_store_switcher/general/country_list', $countriesData]]);
     $this->assertEquals($countriesList, $this->configGeneral->getCountryList());
 }