You are here

public function WebTestBase::setUp in Core Views Facets 8

Overrides BrowserTestBase::setUp

1 call to WebTestBase::setUp()
CoreViewsIntegrationTest::setUp in tests/src/Functional/CoreViewsIntegrationTest.php
1 method overrides WebTestBase::setUp()
CoreViewsIntegrationTest::setUp in tests/src/Functional/CoreViewsIntegrationTest.php

File

tests/src/Functional/WebTestBase.php, line 96

Class

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

Namespace

Drupal\Tests\core_views_facets\Functional

Code

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

  // Create the users used for the tests.
  $this->adminUser = $this
    ->drupalCreateUser([
    '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();
  $this->exposedFiltersFacetSourceId = 'core_views_exposed_filter:core_views_facets_basic_integration__page_1';
  $this->contextualFiltersFacetSourceId = 'core_views_contextual_filter:core_views_facets_basic_integration__page_1';
  $this->facetUrl = 'core-views-facets-basic-integration';
}