You are here

public function FacetFacetSourceTest::setUp in Facets 8

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/Entity/FacetFacetSourceTest.php, line 43

Class

FacetFacetSourceTest
Class FacetFacetSourceTest.

Namespace

Drupal\Tests\facets\Kernel\Entity

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('facets_facet');
  $this
    ->installEntitySchema('entity_test_mulrev_changed');
  $this
    ->installEntitySchema('search_api_task');
  \Drupal::state()
    ->set('search_api_use_tracking_batch', FALSE);

  // Set tracking page size so tracking will work properly.
  \Drupal::configFactory()
    ->getEditable('search_api.settings')
    ->set('tracking_page_size', 100)
    ->save();
  $this
    ->installConfig([
    'search_api_test_example_content',
    'search_api_test_db',
  ]);
  $this
    ->installConfig('search_api_test_views');
}