public function purgeAction() { $domain = $this->params('domain'); $this->settingsService->purge($domain); return sprintf("\nCache purged for domain %s\n\n", $domain); }
public function testPurgeCache() { $this->service->expects($this->once())->method('send')->with(array('a' => 'fpurge_ts', 'z' => 'domain.com', 'v' => 1)); $this->service->purge('domain.com'); }