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. 10 core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php \Drupal\Tests\system\Functional\System\ResponseGeneratorTest::setUp()
  3. 11.x 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() {
    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.