You are here

protected function GoogleCSEDisplayTest::initializeTestUser in Google Custom Search Engine 8.3

Create user for the test.

1 call to GoogleCSEDisplayTest::initializeTestUser()
GoogleCSEDisplayTest::setUp in tests/src/Functional/GoogleCSEDisplayTest.php

File

tests/src/Functional/GoogleCSEDisplayTest.php, line 43

Class

GoogleCSEDisplayTest
Verifies Google CSE renders on a search page.

Namespace

Drupal\Tests\google_cse\Functional

Code

protected function initializeTestUser() {
  $this->testUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'administer search',
    'search content',
    'search Google CSE',
  ]);
}