123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- 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'));
-
- views_module_include('views_default', TRUE);
- views_get_all_views(TRUE);
- menu_rebuild();
-
- $this->admin = $this->drupalCreateUser(array('administer views'));
- }
-
- function testAnalyzeBasic() {
- $this->drupalLogin($this->admin);
-
- $view = views_get_view('frontpage');
- $view->save();
- $this->drupalGet('admin/structure/views/view/frontpage/edit');
- $this->assertLink(t('analyze view'));
-
- $this->clickLink(t('analyze view'));
- $this->assertText(t('View analysis'));
-
- $this->drupalPost(NULL, array(), t('Ok'));
- }
- }
|