summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2013-01-03 15:26:55 (GMT)
committerTorsten Grote <t@grobox.de>2013-01-03 15:26:55 (GMT)
commit558611be63d87a2bf9ffaaaab832ab162ff5ac00 (patch)
tree6b2c0738811d155c9f5bff346a4dc60b6a9d4e7b /kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test
parent06f2e8dfdc6d9f7daf1a4d892299734452722d23 (diff)
downloadkolab.org-www-558611be63d87a2bf9ffaaaab832ab162ff5ac00.tar.gz
removed old drupal versions
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test51
1 files changed, 0 insertions, 51 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test
deleted file mode 100644
index c21a4bb..0000000
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_analyze.test
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-/**
- * @file
- * Definition of ViewsAnalyzeTest.
- */
-
-/**
- * Tests the views analyze system.
- */
-class ViewsAnalyzeTest extends ViewsSqlTest {
- public static function getInfo() {
- return array(
- 'name' => 'Views Analyze',
- 'description' => 'Test the views analyze system.',
- 'group' => 'Views',
- );
- }
-
- public function setUp() {
- parent::setUp('views_ui');
- 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();
-
- // Add an admin user will full rights;
- $this->admin = $this->drupalCreateUser(array('administer views'));
- }
-
- /**
- * Tests that analyze works in general.
- */
- function testAnalyzeBasic() {
- $this->drupalLogin($this->admin);
- // Enable the frontpage view and click the analyse button.
- $view = views_get_view('frontpage');
- $view->save();
-
- $this->drupalGet('admin/structure/views/view/frontpage/edit');
- $this->assertLink(t('analyze view'));
-
- // This redirects the user to the form.
- $this->clickLink(t('analyze view'));
- $this->assertText(t('View analysis'));
-
- // This redirects the user back to the main views edit page.
- $this->drupalPost(NULL, array(), t('Ok'));
- }
-}