You are here

public function HumansTxtBasicTest::testHumansTxtHeader in Humans.txt 2.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/HumansTxtBasicTest.php \Drupal\Tests\humanstxt\Functional\HumansTxtBasicTest::testHumansTxtHeader()

Checks if the header is right.

File

tests/src/Functional/HumansTxtBasicTest.php, line 78

Class

HumansTxtBasicTest
Tests basic functionality of configured humans.txt files.

Namespace

Drupal\Tests\humanstxt\Functional

Code

public function testHumansTxtHeader() {
  $this
    ->drupalGet('humans.txt');
  $this
    ->assertResponse(200);
  $this
    ->assertHeader('Content-Type', 'text/plain; charset=UTF-8');
}