Mercurial > hg > isophonics-drupal-site
diff core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -59,6 +59,18 @@ } /** + * 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')); + } + + /** * Tests toolbar cache contexts. */ public function testToolbarCacheContextsCaller() {