Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\page_cache\StackMiddleware\PageCache.
|
||||
*/
|
||||
|
||||
namespace Drupal\page_cache\StackMiddleware;
|
||||
|
||||
use Drupal\Core\Cache\Cache;
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\page_cache\Tests\PageCacheTagsIntegrationTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\page_cache\Tests;
|
||||
|
||||
use Drupal\Core\EventSubscriber\MainContentViewSubscriber;
|
||||
use Drupal\Core\Language\LanguageInterface;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
use Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait;
|
||||
|
@ -77,7 +73,8 @@ class PageCacheTagsIntegrationTest extends WebTestBase {
|
|||
'user',
|
||||
// The placed block is only visible on certain URLs through a visibility
|
||||
// condition.
|
||||
'url',
|
||||
'url.path',
|
||||
'url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT,
|
||||
];
|
||||
|
||||
// Full node page 1.
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\page_cache\Tests\PageCacheTest.
|
||||
*/
|
||||
|
||||
namespace Drupal\page_cache\Tests;
|
||||
|
||||
use Drupal\Component\Datetime\DateTimePlus;
|
||||
|
@ -263,7 +258,7 @@ class PageCacheTest extends WebTestBase {
|
|||
$this->drupalGet('system-test/set-header', array('query' => array('name' => 'Foo', 'value' => 'bar')));
|
||||
$this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Caching was bypassed.');
|
||||
$this->assertTrue(strpos(strtolower($this->drupalGetHeader('Vary')), 'cookie') === FALSE, 'Vary: Cookie header was not sent.');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, post-check=0, pre-check=0, private', 'Cache-Control header was sent.');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent.');
|
||||
$this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');
|
||||
$this->assertEqual($this->drupalGetHeader('Foo'), 'bar', 'Custom header was sent.');
|
||||
|
||||
|
@ -452,12 +447,12 @@ class PageCacheTest extends WebTestBase {
|
|||
// GET a URL, which would be marked as a cache miss if it were cacheable.
|
||||
$this->drupalGet('/system-test/respond-reponse');
|
||||
$this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, post-check=0, pre-check=0, private', 'Cache-Control header was sent');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
|
||||
|
||||
// GET it again, verify it's still not cached.
|
||||
$this->drupalGet('/system-test/respond-reponse');
|
||||
$this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Drupal page cache header not found.');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, post-check=0, pre-check=0, private', 'Cache-Control header was sent');
|
||||
$this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, private', 'Cache-Control header was sent');
|
||||
|
||||
// GET a URL, which would be marked as a cache miss if it were cacheable.
|
||||
$this->drupalGet('/system-test/respond-public-response');
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\page_cache_form_test\Form\TestForm.
|
||||
*/
|
||||
|
||||
namespace Drupal\page_cache_form_test\Form;
|
||||
|
||||
use Drupal\Core\Form\FormBase;
|
||||
|
|
Reference in a new issue