1.20.x views_query.test ViewsSqlTest::enableViewsUi()

This function allows to enable views ui from a higher class which can't change the setup function anymore.

@TODO Convert existing setUp functions.

File

modules/views/tests/views_query.test, line 173
Tests for Views query features.

Class

ViewsSqlTest

Code

function enableViewsUi() {
  module_enable(array('views_ui'));
  // @TODO Figure out why it's required to clear the cache here.
  views_get_all_views(TRUE);
  menu_rebuild();
}