You are here

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

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

Checks if cache tags exists.

File

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

Class

HumansTxtBasicTest
Tests basic functionality of configured humans.txt files.

Namespace

Drupal\Tests\humanstxt\Functional

Code

public function testHumansTxtCacheTags() {
  $this
    ->drupalGet('humans.txt');
  $this
    ->assertResponse(200);
  $this
    ->assertCacheTag('humanstxt');
}