function ViewExecutableTest::testDestroy

Tests the deconstructor to be sure that every kind of heavy objects are removed.

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewExecutableTest.php, line 155
Definition of Drupal\views\Tests\ViewExecutableTest.

Class

ViewExecutableTest
Tests the ViewExecutable class.

Namespace

Drupal\views\Tests

Code

function testDestroy() {
  $view = views_get_view('test_destroy');
  $view
    ->preview();
  $view
    ->destroy();
  $this
    ->assertViewDestroy($view);
}