Пример #1
0
 protected function getDefaultOptions()
 {
     return ['host' => $this->config->getHost()];
 }
 protected function configureConfigMethods($userId, $licenseKey, $host)
 {
     $this->config->expects($this->once())->method('getUserId')->willReturn($userId);
     $this->config->expects($this->once())->method('getLicenseKey')->willReturn($licenseKey);
     $this->config->expects($this->once())->method('getHost')->willReturn($host);
 }
Пример #3
0
 public function testGetHost()
 {
     $host = 'some-host';
     $this->configureGetValueMethod('tobai_geoip2/web_service/host', $host);
     $this->assertEquals($host, $this->config->getHost());
 }