You are here

ContentAccessTest.php in Search API Solr 4.x

File

modules/search_api_solr_legacy/tests/src/Kernel/Processor/ContentAccessTest.php
View source
<?php

namespace Drupal\Tests\search_api_solr_legacy\Kernel\Processor;

use Drupal\search_api_solr_legacy_test\Plugin\SolrConnector\Solr36TestConnector;
use Drupal\Tests\search_api_solr\Kernel\Processor\ContentAccessTest as SearchApiSolrContentAccessTest;

/**
 * Tests the "Content access" processor.
 *
 * @group search_api_solr_legacy
 *
 * @see \Drupal\search_api\Plugin\search_api\processor\ContentAccess
 */
class ContentAccessTest extends SearchApiSolrContentAccessTest {

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

  /**
   * {@inheritdoc}
   */
  protected function enableSolrServer() {
    parent::enableSolrServer();

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

}

Classes

Namesort descending Description
ContentAccessTest Tests the "Content access" processor.