1 views_view.test ViewsViewTest::testDelete()

File

core/modules/views/tests/views_view.test, line 54
Definition of ViewsViewTest.

Class

ViewsViewTest
Views class tests.

Code

function testDelete() {
  // Delete a database view
  $view = $this->view_test_delete();
  $view->save();
  $view = views_get_view($view->name);
  $view->delete();

  $view = views_get_view($view->name);
  $this->assertFalse($view, 'Make sure that the old view is removed from the static cache.');
}