/**
* Tests the deconstructor to be sure that necessary objects are removed.
*/
public function testDestroy() { $view = Views::
getView('test_destroy'
);
$view->
preview();
$view->
destroy();
$this->
assertViewDestroy($view);
} /**
* Asserts that expected view properties have been unset by destroy().
*
* @param \Drupal\views\ViewExecutable $view
* The view executable.
*
* @internal
*/
protected function assertViewDestroy(ViewExecutable
$view): void
{