function HooksExampleTest::setUp

Overrides BrowserTestBase::setUp

File

modules/hooks_example/tests/src/Functional/HooksExampleTest.php, line 35

Class

HooksExampleTest
Test the functionality of the Hooks Example module.

Namespace

Drupal\Tests\hooks_example\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->createContentType([
    'type' => 'page',
  ]);
  $account = $this->drupalCreateUser([
    'access administration pages',
  ]);
  $this->drupalLogin($account);
}