- $this->mockConfigGet('system', 'redis_host', 'localhost', 1);
- $this->mockConfigGet('system', 'redis_port', null, 1);
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'redis_host')
+ ->andReturn('localhost');
+
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'redis_port')
+ ->andReturn(null);