dumpHeaders = TRUE; } /** * Tests that URL bubbleable metadata is correctly bubbled. */ public function testUrlBubbleableMetadataBubbling() { // Test that regular URLs bubble up bubbleable metadata when converted to // string. $url = Url::fromRoute('cache_test.url_bubbling'); $this->drupalGet($url); $this->assertCacheContext('url.site'); $this->assertRaw($url->setAbsolute()->toString()); } }