Omeka_Test_Helper_Plugin¶
- class Omeka_Test_Helper_Plugin¶
Package: Test\Helper
Encapsulates testing functionality for Omeka plugins.
- setUp(string $pluginName)¶
Install and initialize a plugin.
Note: Normally used in the setUp() method of plugin tests.
Parameters: - $pluginName (string) –
- install(string $pluginName)¶
Install a plugin
Parameters: - $pluginName (string) – The name of the plugin to install.
Returns: Plugin
- initialize(string $pluginName)¶
Initializes the plugin hooks and filters fired in the core resources for a plugin Note: Normally used in the setUp() function of the subclasses that test plugins.
Parameters: - $pluginName (string) – If omitted, initialize all installed plugins.
Returns: void
- _defineResponseContexts()¶
Run the response_contexts filter.
Returns: void
- setPluginLoader(Omeka_Plugin_Loader $pluginLoader)¶
Set the plugin loader for the helper to use.
Parameters: - $pluginLoader (Omeka_Plugin_Loader) –
- setPluginIniReader(Omeka_Plugin_Ini $pluginIniReader)¶
Set the plugin INI reader for the helper to use.
Parameters: - $pluginIniReader (Omeka_Plugin_Ini) –
- setPluginBroker(Omeka_Plugin_Broker $pluginBroker)¶
Set the plugin broker for the helper to use.
Parameters: - $pluginBroker (Omeka_Plugin_Broker) –
- setAcl(Zend_Acl $acl)¶
Set the ACL for the helper to use.
Parameters: - $acl (Zend_Acl) –
- setRouter(Zend_Controller_Router_Interface $router)¶
Set the router for the helper to use.
Parameters: - $router (Zend_Controller_Router_Interface) –
- __get($name)¶
Lazy-loading for helper properties.
When a property is not set, attempts to load a default through standardOmeka global state. If this state is unavailable or undesireable,use the set*() methods before calling any of the other public methodsof this class.
Parameters: - $name (unknown) –
Returns: mixed