You are here

protected function FilterStringTest::getBasicView in Views (for Drupal 7) 8.3

Build and return a basic view of the views_test_data table.

Return value

Drupal\views\ViewExecutable

Overrides ViewTestBase::getBasicView

File

lib/Drupal/views/Tests/Handler/FilterStringTest.php, line 70
Definition of Drupal\views\Tests\Handler\FilterStringTest.

Class

FilterStringTest
Tests the core Drupal\views\Plugin\views\filter\String handler.

Namespace

Drupal\views\Tests\Handler

Code

protected function getBasicView() {
  $view = parent::getBasicView();
  $view->displayHandlers['default']->options['fields']['description'] = array(
    'id' => 'description',
    'table' => 'views_test_data',
    'field' => 'description',
    'relationship' => 'none',
  );
  return $view;
}