function CtoolsPluginsGetInfoTestCase::assertPluginMissingClass
Assert helper to check that a plugin DOES NOT contain the named class.
Parameters
$module: The module that owns the plugin.
$type: The type of plugin.
$id: The id of the specific plugin to load.
string $class: The name of the PHP class to load.
1 call to CtoolsPluginsGetInfoTestCase::assertPluginMissingClass()
- CtoolsPluginsGetInfoTestCase::testPluginLoading in tests/
ctools.plugins.test - Test that plugins are loaded correctly.
File
-
tests/
ctools.plugins.test, line 109
Class
- CtoolsPluginsGetInfoTestCase
- Test menu links depending on user permissions.
Code
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,
)));
}