You are here

public function ProcessorIntegrationTest::setUp in Facets 8

Overrides FacetsTestBase::setUp

File

tests/src/Functional/ProcessorIntegrationTest.php, line 36

Class

ProcessorIntegrationTest
Tests the processor functionality.

Namespace

Drupal\Tests\facets\Functional

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this->adminUser);

  // Set up example content types and insert 10 new content items.
  $this
    ->setUpExampleStructure();
  $this
    ->insertExampleContent();
  $this
    ->assertEquals($this
    ->indexItems($this->indexId), 5, '5 items were indexed.');
  $this
    ->insertExampleContent();
  $this
    ->assertEquals($this
    ->indexItems($this->indexId), 5, '5 items were indexed.');
}