You are here

public function HoneypotAdminFormTest::setUp in Honeypot 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/HoneypotAdminFormTest.php \Drupal\Tests\honeypot\Functional\HoneypotAdminFormTest::setUp()

Setup before test.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/HoneypotAdminFormTest.php, line 41

Class

HoneypotAdminFormTest
Test Honeypot spam protection admin form functionality.

Namespace

Drupal\Tests\honeypot\Functional

Code

public function setUp() {

  // Enable modules required for this test.
  parent::setUp();

  // Set up admin user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer honeypot',
    'bypass honeypot protection',
  ]);
}