protected function StoreTest::getStoreMetadata

6 calls to StoreTest::getStoreMetadata()
StoreTest::testOverwritesNonVaryingResponseWithStore in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testReadsAnEmptyArrayWithReadWhenNothingCachedAtKey in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testRemovesEntriesForKeyWithPurge in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testSetsTheXContentDigestResponseHeaderBeforeStoring in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testStoresACacheEntry in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php

... See full list

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php, line 240

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

protected function getStoreMetadata($key) {
  $r = new \ReflectionObject($this->store);
  $m = $r
    ->getMethod('getMetadata');
  $m
    ->setAccessible(true);
  if ($key instanceof Request) {
    $m1 = $r
      ->getMethod('getCacheKey');
    $m1
      ->setAccessible(true);
    $key = $m1
      ->invoke($this->store, $key);
  }
  return $m
    ->invoke($this->store, $key);
}