You are here

protected function GoogleApplianceFunctionalTestBase::setUp in Google Search Appliance 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/GoogleApplianceFunctionalTestBase.php, line 38

Class

GoogleApplianceFunctionalTestBase
Defines a base class for Google Appliance tests.

Namespace

Drupal\Tests\google_appliance\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->createUser([
    'administer google appliance',
    'access google appliance content',
  ]);

  // Let anonymous users access search results.
  $role = Role::load(RoleInterface::ANONYMOUS_ID);
  $role
    ->grantPermission('access google appliance content')
    ->save();
}