You are here

public function BreadcrumbIntegrationTest::setUp in Facets 8

Overrides FacetsTestBase::setUp

File

tests/src/Functional/BreadcrumbIntegrationTest.php, line 34

Class

BreadcrumbIntegrationTest
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($this
    ->indexItems($this->indexId), 5, '5 items were indexed.');
  $block = [
    'region' => 'footer',
    'label' => 'Breadcrumbs',
    'provider' => 'system',
  ];
  $this
    ->drupalPlaceBlock('system_breadcrumb_block', $block);
  $this
    ->resetAll();
}