You are here

class ViewsTest in Search API Solr 4.x

Same name in this branch
  1. 4.x tests/src/Functional/ViewsTest.php \Drupal\Tests\search_api_solr\Functional\ViewsTest
  2. 4.x modules/search_api_solr_legacy/tests/src/Functional/ViewsTest.php \Drupal\Tests\search_api_solr_legacy\Functional\ViewsTest

Tests the Views integration of the Search API.

@group search_api_solr_legacy

Hierarchy

  • class \Drupal\Tests\search_api_solr\Functional\ViewsTest extends \Drupal\Tests\search_api\Functional\ViewsTest uses SolrCommitTrait
    • class \Drupal\Tests\search_api_solr_legacy\Functional\ViewsTest

Expanded class hierarchy of ViewsTest

File

modules/search_api_solr_legacy/tests/src/Functional/ViewsTest.php, line 13

Namespace

Drupal\Tests\search_api_solr_legacy\Functional
View source
class ViewsTest extends SearchApiSolrViewsTest {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'search_api_solr_legacy',
    'search_api_solr_legacy_test',
  ];

  /**
   * {@inheritdoc}
   */
  protected function adjustBackendConfig() {

    // Swap the connector.
    Solr36TestConnector::adjustBackendConfig('search_api.server.solr_search_server');
  }

  /**
   * Tests the Views admin UI and field handlers.
   */
  public function testViewsAdmin() {
    $this
      ->markTestSkipped('This test fails on Solr 3.6. It requires some more debugging.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SolrCommitTrait::ensureCommit protected function Explicitly sends a commit command to a Solr server.
ViewsTest::$modules public static property Modules to enable for this test. Overrides ViewsTest::$modules
ViewsTest::adjustBackendConfig protected function Allow 3rd party Solr connectors to manipulate the config. Overrides ViewsTest::adjustBackendConfig
ViewsTest::indexItems protected function Indexes all (unindexed) items on the specified index.
ViewsTest::setUp public function
ViewsTest::tearDown protected function
ViewsTest::testSearchView public function
ViewsTest::testViewsAdmin public function Tests the Views admin UI and field handlers.