You are here

function ViewsDataExportBaseTest::enableViewsUi in Views data export 7.4

Same name and namespace in other branches
  1. 7.3 tests/base.test \ViewsDataExportBaseTest::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

tests/base.test, line 41

Class

ViewsDataExportBaseTest

Code

function enableViewsUi() {
  module_enable(array(
    'views_ui',
  ));

  // @TODO Figure out why it's required to clear the cache here.
  views_module_include('views_default', TRUE);
  views_get_all_views(TRUE);
  menu_rebuild();
}