You are here

public function IntegrationTest::testFramework in Search API Solr 8

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

Tests various operations via the Search API's admin UI.

Overrides IntegrationTest::testFramework

File

tests/src/Functional/IntegrationTest.php, line 43

Class

IntegrationTest
Tests the overall functionality of the Search API framework and admin UI.

Namespace

Drupal\Tests\search_api_solr\Functional

Code

public function testFramework() {
  $this
    ->createServer();
  $this
    ->createServerDuplicate();

  // @todo should work but doesn't.
  // $this->checkServerAvailability();
  $this
    ->createIndex();
  $this
    ->createIndexDuplicate();
  $this
    ->editServer();
  $this
    ->editIndex();
  $this
    ->checkUserIndexCreation();

  // This tests doesn't cover the backend. No need to run it on Solr again.
  // $this->checkContentEntityTracking();
  // @todo overwrite.
  // $this->enableAllProcessors();
  $this
    ->checkFieldLabels();

  // @todo overwrite.
  // $this->addFieldsToIndex();
  // $this->checkDataTypesTable();
  // $this->removeFieldsFromIndex();
  // $this->checkReferenceFieldsNonBaseFields();
  // These tests don't cover the backend. No need to run them on Solr again.
  // $this->configureFilter();
  // $this->configureFilterPage();
  // $this->checkProcessorChanges();
  // $this->changeProcessorFieldBoost();
  $this
    ->setReadOnly();

  // @todo review.
  // $this->disableEnableIndex();
  $this
    ->changeIndexDatasource();
  $this
    ->changeIndexServer();

  // @todo review.
  // $this->deleteServer();
}