You are here

public function ViewsTest::testSearchView in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/ViewsTest.php \Drupal\Tests\search_api_solr\Functional\ViewsTest::testSearchView()
  2. 8.2 tests/src/Functional/ViewsTest.php \Drupal\Tests\search_api_solr\Functional\ViewsTest::testSearchView()
  3. 4.x tests/src/Functional/ViewsTest.php \Drupal\Tests\search_api_solr\Functional\ViewsTest::testSearchView()

Tests a view with exposed filters.

Overrides ViewsTest::testSearchView

File

tests/src/Functional/ViewsTest.php, line 67

Class

ViewsTest
Tests the Views integration of the Search API.

Namespace

Drupal\Tests\search_api_solr\Functional

Code

public function testSearchView() {

  // @see https://www.drupal.org/node/2773019
  $query = [
    'language' => [
      '***LANGUAGE_language_interface***',
    ],
  ];
  $this
    ->checkResults($query, [
    1,
    2,
    3,
    4,
    5,
  ], 'Search with interface language as filter');
  parent::testSearchView();
}