// Test ['#attached']['http_header'] with various replacement rules.
$this->drupalGet('/render_attached_test/header'); $this->assertTeapotHeaders(); $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', 'MISS'); // Repeat for the cache.
$this->drupalGet('/render_attached_test/header'); $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', 'HIT');
// Test ['#attached']['feed'].
$this->drupalGet('/render_attached_test/feed'); $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', 'MISS'); $this->assertFeed(); // Repeat for the cache.
$this->drupalGet('/render_attached_test/feed');