You are here

protected function FilterCombineTest::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/FilterCombineTest.php, line 36
Definition of Drupal\views\Tests\Handler\FilterCombineTest.

Class

FilterCombineTest
Tests the combine filter handler.

Namespace

Drupal\views\Tests\Handler

Code

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