+ /**
+ * Tests toolbar cache integration.
+ */
+ public function testCacheIntegration() {
+ $this->installExtraModules(['dynamic_page_cache']);
+ $this->drupalLogin($this->adminUser);
+ $this->drupalGet('test-page');
+ $this->assertSame('MISS', $this->getSession()->getResponseHeader('X-Drupal-Dynamic-Cache'));
+ $this->drupalGet('test-page');
+ $this->assertSame('HIT', $this->getSession()->getResponseHeader('X-Drupal-Dynamic-Cache'));
+ }
+