You are here

public function FacetSourceTest::setUp in Facets 8

Same name in this branch
  1. 8 tests/src/Functional/FacetSourceTest.php \Drupal\Tests\facets\Functional\FacetSourceTest::setUp()
  2. 8 tests/src/Kernel/Entity/FacetSourceTest.php \Drupal\Tests\facets\Kernel\Entity\FacetSourceTest::setUp()

Overrides FacetsTestBase::setUp

File

tests/src/Functional/FacetSourceTest.php, line 26

Class

FacetSourceTest
Tests the functionality of the facet source config entity.

Namespace

Drupal\Tests\facets\Functional

Code

public function setUp() {
  parent::setUp();

  // Make sure we're logged in with a user that has sufficient permissions.
  $this
    ->drupalLogin($this->adminUser);

  // Go to the overview and click the first configure link.
  $this
    ->drupalGet('admin/config/search/facets');
  $this
    ->assertSession()
    ->linkExists('Configure');
  $this
    ->clickLink('Configure');
}