You are here

function ImagecacheExternalTestCase::testCachingExternalImageUsingWhitelist in Imagecache External 7.2

Same name and namespace in other branches
  1. 8 imagecache_external.test \ImagecacheExternalTestCase::testCachingExternalImageUsingWhitelist()

Test caching an external image using the whitelist.

File

./imagecache_external.test, line 206
Tests for Imagecache External.

Class

ImagecacheExternalTestCase
Tests the functions for working with public/private file schemes.

Code

function testCachingExternalImageUsingWhitelist() {
  global $base_url;
  variable_set('imagecache_external_option', 'white');
  variable_set('imagecache_external_hosts', parse_url($base_url, PHP_URL_HOST));
  $this
    ->testCachingExternalImage();
}