You are here

public function VarnishPurgeFeatureContext::iPurgeTheHomepage in Varnish purger 8.2

@When I purge the home page

File

tests/src/Behat/features/bootstrap/VarnishPurgeFeatureContext.php, line 118

Class

VarnishPurgeFeatureContext
Behat steps for testing the varnish_purger module.

Code

public function iPurgeTheHomepage() {
  $url = \Drupal::request()
    ->getSchemeAndHttpHost() . '/';
  $this
    ->purgeUrl($url);
}