protected function RedirectTestHelper::assertPageCached in Redirect 7
Same name and namespace in other branches
- 7.2 redirect.test \RedirectTestHelper::assertPageCached()
1 call to RedirectTestHelper::assertPageCached()
File
- ./
redirect.test, line 62 - Unit tests for the redirect module.
Class
- RedirectTestHelper
- @file Unit tests for the redirect module.
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;
}