public function EntityListBuilderTest::testCacheTags in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php \Drupal\Tests\system\Functional\Entity\EntityListBuilderTest::testCacheTags()
Tests if the list cache tags are set.
File
- core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityListBuilderTest.php, line 77
Class
- EntityListBuilderTest
- Tests entity list builder functionality.
Namespace
Drupal\Tests\system\Functional\EntityCode
public function testCacheTags() {
$this
->drupalGet('entity_test/list');
$this
->assertSession()
->responseHeaderContains('X-Drupal-Cache-Tags', 'entity_test_list');
}