function ViewsAnalyzeTest::setUp

Overrides ViewsSqlTest::setUp

File

tests/views_analyze.test, line 27

Class

ViewsAnalyzeTest
Tests the views analyze system.

Code

public function setUp(array $modules = array()) {
    parent::setUp($modules);
    // @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();
    // Add an admin user will full rights.
    $this->admin = $this->drupalCreateUser(array(
        'administer views',
    ));
}