function viewsUiGroupbyTestCase::testGroupBySave

3.x views_groupby.test viewsUiGroupbyTestCase::testGroupBySave()

Tests whether basic saving works.

@todo: this should check the change of the settings as well.

File

tests/views_groupby.test, line 313
Tests aggregate functionality of Views.

Class

viewsUiGroupbyTestCase
Tests UI of aggregate functionality..

Code

function testGroupBySave() {
  $this->drupalGet('admin/structure/views/view/test_views_groupby_save/edit');

  $edit = array(
    'group_by' => TRUE,
  );
  $this->drupalPost('admin/structure/views/nojs/display/test_views_groupby_save/default/group_by', $edit, t('Apply'));

  $this->drupalGet('admin/structure/views/view/test_views_groupby_save/edit');
  $this->drupalPost('admin/structure/views/view/test_views_groupby_save/edit', array(), t('Save'));

  $this->drupalGet('admin/structure/views/nojs/display/test_views_groupby_save/default/group_by');
}