Omeka_Test_Helper_Plugin¶
Package: Test\Helper
- class Omeka_Test_Helper_Plugin¶
Encapsulates testing functionality for Omeka plugins.
- setUp($pluginName)¶
Install and initialize a plugin.
Note: Normally used in the setUp() method of plugin tests.
Parameters: - $pluginName (string) –
- install($pluginName)¶
Install a plugin
Parameters: - $pluginName (string) – The name of the plugin to install.
Returns: Plugin
- initialize($pluginName = null)¶
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($pluginLoader)¶
Set the plugin loader for the helper to use.
Parameters: - $pluginLoader (Omeka_Plugin_Loader) –
- setPluginIniReader($pluginIniReader)¶
Set the plugin INI reader for the helper to use.
Parameters: - $pluginIniReader (Omeka_Plugin_Ini) –
- setPluginBroker($pluginBroker)¶
Set the plugin broker for the helper to use.
Parameters: - $pluginBroker (Omeka_Plugin_Broker) –
- setAcl($acl)¶
Set the ACL for the helper to use.
Parameters: - $acl (Zend_Acl) –
- setRouter($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 standard Omeka global state. If this state is unavailable or undesireable, use the set*() methods before calling any of the other public methods of this class.
Parameters: - $name –
Returns: mixed