Tests the deconstructor to be sure that necessary objects are removed.
public function testDestroy() { $view = views_get_view('test_destroy'); $view ->preview(); $view ->destroy(); $this ->assertViewDestroy($view); }