You are here

public function FacetsUrlGeneratorTest::setUp in Facets 8

Overrides FacetsTestBase::setUp

File

tests/src/Functional/FacetsUrlGeneratorTest.php, line 40

Class

FacetsUrlGeneratorTest
Class FacetsUrlGeneratorTest.

Namespace

Drupal\Tests\facets\Functional

Code

public function setUp() {
  parent::setUp();
  $this->urlGenerator = \Drupal::service('facets.utility.url_generator');
  $this
    ->setUpExampleStructure();
  $this
    ->insertExampleContent();
  $this
    ->assertEquals(5, $this
    ->indexItems($this->indexId), '5 items were indexed.');
}