\Drupal::
service('file_system'
)->
deleteRecursive($this->siteDirectory,
[$this, 'filePreDeleteCallback'
]);
} /**
* {@inheritdoc}
*/
protected function tearDown(): void
{ parent::
tearDown();
// Destroy the testing kernel.
if (isset($this->kernel
)) { $this->
cleanupEnvironment();
$this->kernel->
shutdown();
} // Ensure that internal logged in variable is reset.
$this->loggedInUser = FALSE;
if ($this->mink
) { $this->mink->
stopSessions();
} // Restore original shutdown callbacks.