You are here

public function IntegrationTest::setUp in Facets 8

Same name in this branch
  1. 8 tests/src/Functional/IntegrationTest.php \Drupal\Tests\facets\Functional\IntegrationTest::setUp()
  2. 8 modules/facets_summary/tests/src/Functional/IntegrationTest.php \Drupal\Tests\facets_summary\Functional\IntegrationTest::setUp()

Overrides FacetsTestBase::setUp

File

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

Class

IntegrationTest
Tests the overall functionality of the Facets admin UI.

Namespace

Drupal\Tests\facets\Functional

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->setUpExampleStructure();
  $this
    ->insertExampleContent();
  $this
    ->assertEquals(5, $this
    ->indexItems($this->indexId), '5 items were indexed.');

  // Make absolutely sure the ::$blocks variable doesn't pass information
  // along between tests.
  $this->blocks = NULL;
}