core/profiles/standard/src/Tests/StandardTest.php | 29 ----------------------- 1 file changed, 29 deletions(-) diff --git a/core/profiles/standard/src/Tests/StandardTest.php b/core/profiles/standard/src/Tests/StandardTest.php index 0c977fc..f124568 100644 --- a/core/profiles/standard/src/Tests/StandardTest.php +++ b/core/profiles/standard/src/Tests/StandardTest.php @@ -179,34 +179,5 @@ function testStandard() { $this->assertText('Max 650x650'); $this->assertText('Max 1300x1300'); $this->assertText('Max 2600x2600'); - - // Verify certain routes' responses are cacheable by SmartCache, to ensure - // these responses are very fast for authenticated users. - $url = Url::fromRoute('contact.site_page'); - $this->drupalGet($url); - $this->assertEqual('UNCACHEABLE', $this->drupalGetHeader('X-Drupal-SmartCache'), 'Site-wide contact page cannot be cached by SmartCache.'); - - $url = Url::fromRoute(''); - $this->drupalGet($url); - $this->drupalGet($url); - $this->assertEqual('HIT', $this->drupalGetHeader('X-Drupal-SmartCache'), 'Frontpage is cached by SmartCache.'); - - $url = Url::fromRoute('entity.node.canonical', ['node' => 1]); - $this->drupalGet($url); - $this->drupalGet($url); - $this->assertEqual('HIT', $this->drupalGetHeader('X-Drupal-SmartCache'), 'Full node page is cached by SmartCache.'); - - $url = Url::fromRoute('entity.user.canonical', ['user' => 1]); - $this->drupalGet($url); - $this->drupalGet($url); - $this->assertEqual('HIT', $this->drupalGetHeader('X-Drupal-SmartCache'), 'User profile page is cached by SmartCache.'); - - $url = Url::fromRoute('system.admin'); - $this->drupalGet($url); - $this->assertFalse($this->drupalGetHeader('X-Drupal-SmartCache'), 'Admin pages cannot be cached by SmartCache.'); - - $url = Url::fromRoute('system.db_update'); - $this->drupalGet($url); - $this->assertFalse($this->drupalGetHeader('X-Drupal-SmartCache'), 'update.php page cannot be cached by SmartCache.'); } }