/**
  * @param [] $whiteIps
  * @param string $remoteIp
  * @param bool $isCurrentIp
  * @dataProvider isCurrentIpDataProvider
  */
 public function testIsCurrentIp($whiteIps, $remoteIp, $isCurrentIp)
 {
     $this->remoteAddress->expects($this->atLeastOnce())->method('getRemoteAddress')->willReturn($remoteIp);
     $this->assertEquals($isCurrentIp, $this->request->isCurrentIp($whiteIps));
 }
 /**
  * @return bool
  */
 public function isAvailable()
 {
     return $this->appStateHelper->isFrontendArea() && !$this->requestHelper->isCurrentIp($this->getWhiteIps()) && !$this->requestHelper->isCurrentUserAgent($this->getWhiteUa()) && $this->isActive();
 }