/** * @param string $whiteIps * @param array $whiteIpsResult * @dataProvider getWhiteIpsDataProvider */ public function testGetWhiteIps($whiteIps, $whiteIpsResult) { $this->scopeConfig->expects($this->once())->method('getStoreValue')->with('tobai_geo_store_switcher/general/white_ips')->willReturn($whiteIps); $this->assertEquals($whiteIpsResult, $this->configGeneral->getWhiteIps()); }