1 redirect.test | protected RedirectTestHelper::assertPageCached($url, array $options = array()) |
File
- core/
modules/ redirect/ tests/ redirect.test, line 74 - Unit tests for the redirect module.
Class
Code
protected function assertPageCached($url, array $options = array()) {
$options['absolute'] = TRUE;
$url = url($url, $options);
$cache = cache_get($url, 'cache_page');
$this->assertTrue($cache, t('Page %url was cached.', array('%url' => $url)));
return $cache;
}