Open Journal Systems  3.3.0
MetadataPluginTestCase Class Reference
Inheritance diagram for MetadataPluginTestCase:
PluginTestCase DatabaseTestCase PKPTestCase PKPDc11MetadataPluginTest Dc11MetadataPluginTest

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 
- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 

Detailed Description

Abstract base class for MetadataPlugin tests.

See also
MetadataPlugin

Definition at line 24 of file MetadataPluginTestCase.inc.php.

Member Function Documentation

◆ executeMetadataPluginTest()

MetadataPluginTestCase::executeMetadataPluginTest (   $pluginDir,
  $pluginName,
  $filterGroups,
  $controlledVocabs 
)
protected

Executes the metadata plug-in test.

Parameters
$pluginDirstring
$pluginNamestring
$filterGroupsarray
$controlledVocabsarray

Definition at line 43 of file MetadataPluginTestCase.inc.php.

References PluginTestCase\executePluginTest(), DAORegistry\getDAO(), PluginRegistry\getPlugins(), and PluginTestCase\validateXmlConfig().

Referenced by PKPDc11MetadataPluginTest\testDc11MetadataPlugin().

◆ getAffectedTables()

MetadataPluginTestCase::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.

Reimplemented from PluginTestCase.

Definition at line 28 of file MetadataPluginTestCase.inc.php.


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