Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/views_cache.test | ||
---|---|---|
11 | 11 |
* @see views_plugin_cache |
12 | 12 |
*/ |
13 | 13 |
class ViewsCacheTest extends ViewsSqlTest { |
14 |
|
|
15 |
/** |
|
16 |
* |
|
17 |
*/ |
|
14 | 18 |
public static function getInfo() { |
15 | 19 |
return array( |
16 | 20 |
'name' => 'Cache', |
17 | 21 |
'description' => 'Tests pluggable caching for views.', |
18 |
'group' => 'Views Plugins' |
|
22 |
'group' => 'Views Plugins',
|
|
19 | 23 |
); |
20 | 24 |
} |
21 | 25 |
|
... | ... | |
153 | 157 |
* Tests css/js storage and restoring mechanism. |
154 | 158 |
*/ |
155 | 159 |
function testHeaderStorage() { |
156 |
// Create a view with output caching enabled. |
|
157 |
// Some hook_views_pre_render in views_test.module adds the test css/js file.
|
|
158 |
// so they should be added to the css/js storage.
|
|
160 |
// Create a view with output caching enabled. Some hook_views_pre_render in
|
|
161 |
// views_test.module adds the test css/js file, so they should be added to
|
|
162 |
// the css/js storage. |
|
159 | 163 |
$view = $this->getBasicView(); |
160 | 164 |
$view->init_display(); |
161 | 165 |
$view->name = 'test_cache_header_storage'; |
Formats disponibles : Unified diff
Weekly update of contrib modules