Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PluginTestCase Class Reference
Inheritance diagram for PluginTestCase:
DatabaseTestCase PKPTestCase MetadataPluginTestCase PKPIsbndbCitationLookupPluginTest PKPDc11MetadataPluginTest PKPMods34MetadataPluginTest PKPNlm30MetadataPluginTest PKPOpenurl10MetadataPluginTest Mods34MetadataPluginTest Nlm30MetadataPluginTest Openurl10MetadataPluginTest

Protected Member Functions

 executePluginTest ($pluginCategory, $pluginDir, $pluginName, $filterGroups)
 
 getAffectedTables ()
 
 getMockedRegistryKeys ()
 
- Protected Member Functions inherited from DatabaseTestCase
 getAffectedTables ()
 
 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path= 'index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath= 'config')
 
 setUp ()
 
 tearDown ()
 

Additional Inherited Members

- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Detailed Description

Abstract base class for Plugin tests.

See Also
Plugin

Definition at line 26 of file PluginTestCase.inc.php.

Member Function Documentation

PluginTestCase::executePluginTest (   $pluginCategory,
  $pluginDir,
  $pluginName,
  $filterGroups 
)
protected

Executes the plug-in test.

Parameters
$pluginCategorystring
$pluginDirstring
$pluginNamestring
$filterGroupsarray

Definition at line 51 of file PluginTestCase.inc.php.

References DAORegistry\getDAO(), VersionCheck\parseVersionXML(), and Registry\set().

Referenced by MetadataPluginTestCase\executeMetadataPluginTest(), and PKPIsbndbCitationLookupPluginTest\testIsbndbCitationLookupPlugin().

PluginTestCase::getAffectedTables ( )
protected

Override this method if you want to backup/restore tables before/after the test.

Returns
array A list of tables to backup and restore.

Definition at line 30 of file PluginTestCase.inc.php.

PluginTestCase::getMockedRegistryKeys ( )
protected

Override this method if you want to backup/restore registry entries before/after the test.

Returns
array A list of registry keys to backup and restore.

Definition at line 40 of file PluginTestCase.inc.php.


The documentation for this class was generated from the following file: