security updates
have to check views and entityreference for custom patches
This commit is contained in:
48
sites/all/modules/contrib/dev/ctools/tests/css_cache.test
Normal file
48
sites/all/modules/contrib/dev/ctools/tests/css_cache.test
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Tests the custom CSS cache handler.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tests the custom CSS cache handler.
|
||||
*/
|
||||
class CtoolsObjectCache extends DrupalWebTestCase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Ctools CSS cache',
|
||||
'description' => 'Tests the custom CSS cache handler.',
|
||||
'group' => 'Chaos Tools Suite',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function setUp() {
|
||||
parent::setUp('ctools');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the custom CSS cache handler.
|
||||
*
|
||||
* @see https://drupal.org/node/1313368
|
||||
*/
|
||||
public function testCssCache() {
|
||||
// Create a CSS cache entry.
|
||||
$filename = ctools_css_cache('body { color: red; }');
|
||||
|
||||
// Perform a cron run. The CSS cache entry should not be removed.
|
||||
$this->cronRun();
|
||||
$this->assertTrue(file_exists($filename), 'The CSS cache is not cleared after performing a cron run.');
|
||||
|
||||
// Manually clear the caches. The CSS cache entry should be removed.
|
||||
drupal_flush_all_caches();
|
||||
$this->assertFalse(file_exists($filename), 'The CSS cache is cleared after clearing all caches.');
|
||||
}
|
||||
|
||||
}
|
@@ -2,14 +2,15 @@ name = CTools export test
|
||||
description = CTools export test module
|
||||
core = 7.x
|
||||
package = Chaos tool suite
|
||||
version = CTOOLS_MODULE_VERSION
|
||||
dependencies[] = ctools
|
||||
hidden = TRUE
|
||||
|
||||
files[] = ctools_export.test
|
||||
|
||||
; Information added by drupal.org packaging script on 2013-04-03
|
||||
version = "7.x-1.3"
|
||||
; Information added by Drupal.org packaging script on 2015-03-18
|
||||
version = "7.x-1.7"
|
||||
core = "7.x"
|
||||
project = "ctools"
|
||||
datestamp = "1365013512"
|
||||
datestamp = "1426696183"
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
name = Chaos tools plugins test
|
||||
description = Provides hooks for testing ctools plugins.
|
||||
package = Chaos tool suite
|
||||
version = CTOOLS_MODULE_VERSION
|
||||
core = 7.x
|
||||
dependencies[] = ctools
|
||||
files[] = ctools.plugins.test
|
||||
@@ -11,9 +12,9 @@ files[] = math_expression.test
|
||||
files[] = math_expression_stack.test
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2013-04-03
|
||||
version = "7.x-1.3"
|
||||
; Information added by Drupal.org packaging script on 2015-03-18
|
||||
version = "7.x-1.7"
|
||||
core = "7.x"
|
||||
project = "ctools"
|
||||
datestamp = "1365013512"
|
||||
datestamp = "1426696183"
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* A cached plugin object that tests inheritence including.
|
||||
*/
|
||||
|
||||
class ctoolsCachedPluginArray {}
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* A cached plugin object that tests inheritence including.
|
||||
*/
|
||||
|
||||
class ctoolsCachedPluginArray2 extends ctoolsCachedPluginArray {}
|
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Chaos Tools plugin include using a plugin array to declare a plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Plugin array plugin definition.
|
||||
*/
|
||||
$plugin = array(
|
||||
'function' => 'ctools_plugin_test_plugin_array_cached_test',
|
||||
'handler' => array(
|
||||
'class' => 'ctoolsCachedPluginArray',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Plugin array function plugin.
|
||||
*/
|
||||
function ctools_plugin_test_plugin_array_cached_test() {}
|
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Chaos Tools plugin include using a plugin array to declare a plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Plugin array plugin definition.
|
||||
*/
|
||||
$plugin = array(
|
||||
'function' => 'ctools_plugin_test_plugin_array2_cached_test',
|
||||
'handler' => array(
|
||||
'class' => 'ctoolsCachedPluginArray2',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Plugin array function plugin.
|
||||
*/
|
||||
function ctools_plugin_test_plugin_array2_cached_test() {}
|
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Chaos Tools plugin include using a plugin array to declare a plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Plugin array plugin definition.
|
||||
*/
|
||||
$plugin = array(
|
||||
'function' => 'ctools_plugin_test_plugin_array_dne_cached_test',
|
||||
'handler' => array(
|
||||
'class' => 'ctoolsCachedPluginArrayDNE',
|
||||
),
|
||||
);
|
Reference in New Issue
Block a user