You are here

protected function ResponseGeneratorTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php \Drupal\Tests\system\Functional\System\ResponseGeneratorTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php, line 30

Class

ResponseGeneratorTest
Tests to see if generator header is added.

Namespace

Drupal\Tests\system\Functional\System

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $account = $this
    ->drupalCreateUser([
    'access content',
  ]);
  $this
    ->drupalLogin($account);
}