You are here

public static function VarnishPurgeFeatureContext::tearDown in Varnish purger 8.2

@AfterScenario

Parameters

\Behat\Testwork\Hook\Scope\AfterSuiteScope $scope:

File

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

Class

VarnishPurgeFeatureContext
Behat steps for testing the varnish_purger module.

Code

public static function tearDown(\Behat\Testwork\Hook\Scope\AfterTestScope $scope) {
  $nodes = node_load_multiple();
  foreach ($nodes as $node) {
    $node
      ->delete();
  }
  self::purgeEverything();
}