You are here

function ViewsHandlerFilterStringTest::testFilterStringEqual in Views (for Drupal 7) 7.3

File

tests/handlers/views_handler_filter_string.test, line 79
Definition of ViewsHandlerFilterStringTest.

Class

ViewsHandlerFilterStringTest
Tests the core views_handler_filter_string handler.

Code

function testFilterStringEqual() {
  $view = $this
    ->getBasicView();

  // Change the filtering.
  $view->display['default']->handler
    ->override_option('filters', array(
    'name' => array(
      'id' => 'name',
      'table' => 'views_test',
      'field' => 'name',
      'relationship' => 'none',
      'operator' => '=',
      'value' => 'Ringo',
    ),
  ));
  $this
    ->executeView($view);
  $resultset = array(
    array(
      'name' => 'Ringo',
    ),
  );
  $this
    ->assertIdenticalResultset($view, $resultset, $this->column_map);
}