You are here

public function TestSubContext::cleanupPrivateFiles in Panopoly 8.2

Clean up our temporary private files path.

@AfterScenario @api&&@drupal_private_files

File

modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc, line 295
Provide Behat step-definitions for generic Panopoly tests.

Class

TestSubContext
Behat sub-context for Panopoly.

Code

public function cleanupPrivateFiles($event) {
  \Drupal::getContainer()
    ->get('state')
    ->delete('panopoly_test_private_file_path');
  \Drupal::service('kernel')
    ->invalidateContainer();
}