summaryrefslogtreecommitdiffstats
path: root/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-04-17 10:54:56 (GMT)
committerNathaniel Catchpole2015-04-17 10:54:56 (GMT)
commitb986c827fbb62fa7e56a95605fe2a4fcf6876392 (patch)
tree0c3596b83afa57a027d15660a26bf3a2f0970760 /core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
parentd4431a10d7573d43aa8e0cdd77fb8785b9858a5f (diff)
Issue #2368987 by Wim Leers, Berdir, Schnitzel, epari.siva, bircher, vijaycs85, likin: Move internal page caching to a module to avoid relying on config get on runtime
Diffstat (limited to 'core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php')
-rw-r--r--core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
index abe8ffb..16fc8e6 100644
--- a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
@@ -79,22 +79,6 @@ class ImageStylesPathAndUrlTest extends WebTestBase {
}
/**
- * Tests an image style URL using the "public://" scheme and page cache.
- */
- public function testImageStyleUrlAndPathPublicWithPageCache() {
- $this->enablePageCache();
- $this->doImageStyleUrlAndPathTests('public');
- }
-
- /**
- * Tests an image style URL using the "private://" scheme and page cache.
- */
- public function testImageStyleUrlAndPathPrivateWithPageCache() {
- $this->enablePageCache();
- $this->doImageStyleUrlAndPathTests('private');
- }
-
- /**
* Tests an image style URL with a file URL that has an extra slash in it.
*/
function testImageStyleUrlExtraSlash() {
@@ -242,15 +226,4 @@ class ImageStylesPathAndUrlTest extends WebTestBase {
$this->assertResponse(200, 'Image was accessible at the URL with a missing token.');
}
- /**
- * Turn on page caching.
- */
- protected function enablePageCache() {
- // Turn on page caching and rerun the test.
- $config = $this->config('system.performance');
- $config->set('cache.page.use_internal', 1);
- $config->set('cache.page.max_age', 300);
- $config->save();
- }
-
}