protected function CtoolsPluginsGetInfoTestCase::assertPluginMissingFunction in Chaos Tool Suite (ctools) 7
Assert helper to check that a specific plugin function does NOT exist.
Parameters
$module: The module that owns the plugin.
$type: The type of plugin.
$id: The id of the specific plugin to load.
$function: The identifier of the function. For example, 'settings form'.
1 call to CtoolsPluginsGetInfoTestCase::assertPluginMissingFunction()
- CtoolsPluginsGetInfoTestCase::testPluginLoading in tests/
ctools.plugins.test - Test that plugins are loaded correctly.
File
- tests/
ctools.plugins.test, line 64
Class
- CtoolsPluginsGetInfoTestCase
- Test menu links depending on user permissions.
Code
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,
)));
}