- $this->mockConfigGet('system', 'memcache_host', 'localhost', 1);
- $this->mockConfigGet('system', 'memcache_port', 11211, 1);
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'memcache_host')
+ ->andReturn('localhost');
+
+ $this->configMock
+ ->shouldReceive('get')
+ ->with('system', 'memcache_port')
+ ->andReturn(11211);