public function FeatureContext::assertPathHasBeenPurged in Pantheon Advanced Page Cache 8
@Then :path has been purged
File
- tests/
behat/ helper_classes/ Contexts/ FeatureContext.php, line 117
Class
- FeatureContext
- Define application features from the specific context.
Namespace
PantheonSystems\CDNBehatHelpers\ContextsCode
public function assertPathHasBeenPurged($path) {
$age = $this
->getAge($path);
$ageTracker = $this
->getAgeTracker();
if (!$ageTracker
->wasCacheClearedBetweenLastTwoRequests($path)) {
throw new \Exception('Cache was not cleared between requests');
}
}