You are here

public function FacetsTestBase::setUp in Facets 8

Overrides BrowserTestBase::setUp

14 calls to FacetsTestBase::setUp()
AggregatedFieldTest::setUp in tests/src/Functional/AggregatedFieldTest.php
BreadcrumbIntegrationTest::setUp in tests/src/Functional/BreadcrumbIntegrationTest.php
FacetSourceTest::setUp in tests/src/Functional/FacetSourceTest.php
FacetsUrlGeneratorTest::setUp in tests/src/Functional/FacetsUrlGeneratorTest.php
HierarchicalFacetIntegrationTest::setUp in tests/src/Functional/HierarchicalFacetIntegrationTest.php

... See full list

14 methods override FacetsTestBase::setUp()
AggregatedFieldTest::setUp in tests/src/Functional/AggregatedFieldTest.php
BreadcrumbIntegrationTest::setUp in tests/src/Functional/BreadcrumbIntegrationTest.php
FacetSourceTest::setUp in tests/src/Functional/FacetSourceTest.php
FacetsUrlGeneratorTest::setUp in tests/src/Functional/FacetsUrlGeneratorTest.php
HierarchicalFacetIntegrationTest::setUp in tests/src/Functional/HierarchicalFacetIntegrationTest.php

... See full list

File

tests/src/Functional/FacetsTestBase.php, line 71

Class

FacetsTestBase
Provides the base class for web tests for Search API.

Namespace

Drupal\Tests\facets\Functional

Code

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

  // Create the users used for the tests.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer search_api',
    'administer facets',
    'access administration pages',
    'administer nodes',
    'access content overview',
    'administer content types',
    'administer blocks',
  ]);
  $this->unauthorizedUser = $this
    ->drupalCreateUser([
    'access administration pages',
  ]);
  $this->anonymousUser = $this
    ->drupalCreateUser();
}