function ResponseGeneratorTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php \Drupal\Tests\system\Functional\System\ResponseGeneratorTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php \Drupal\Tests\system\Functional\System\ResponseGeneratorTest::setUp()
  3. 10 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.