1 views_handlers.test ViewsHandlersTest::testFilterInOperatorUi()

File

core/modules/views/tests/views_handlers.test, line 14
Definition of ViewsHandlersTest.

Class

ViewsHandlersTest
Tests abstract handlers of views.

Code

function testFilterInOperatorUi() {
  $admin_user = $this->backdropCreateUser(array('administer views', 'administer site configuration'));
  $this->backdropLogin($admin_user);
  menu_rebuild();

  $path = 'admin/structure/views/nojs/config-item/test_filter_in_operator_ui/default/filter/type';
  $this->backdropGet($path);
  $this->assertFieldByName('options[expose][reduce]', FALSE);

  $edit = array(
    'options[expose][reduce]' => TRUE,
  );
  $this->backdropPost($path, $edit, t('Apply'));
  $this->backdropGet($path);
  $this->assertFieldByName('options[expose][reduce]', TRUE);
}