Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
DatabaseTestCase Class Reference
Inheritance diagram for DatabaseTestCase:
PKPTestCase CitationDAOTest DBConnectionTest FilterDAOTest FilterGroupDAOTest FunctionalOaiBaseTestCase LucenePluginTest MetadataDescriptionDAOTest Mods34DescriptionTestCase NativeImportExportPluginTest PluginTestCase ProcessDAOTest

Protected Member Functions

 getAffectedTables ()
 setUp ()
 tearDown ()
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 getMockedRegistryKeys ()
 setTestConfiguration ($config, $configPath= 'config')
 setUp ()
 tearDown ()

Additional Inherited Members

- Public Member Functions inherited from PKPTestCase
 getActualOutput ()

Detailed Description

Base class for unit tests that require database support. The schema TestName.setUp.xml will be installed before each individual test case (if present). The schema TestName.tearDown.xml may be used to clean up after each test case.

Definition at line 23 of file

Member Function Documentation

DatabaseTestCase::getAffectedTables ( )

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

array A list of tables to backup and restore.

Definition at line 30 of file

Referenced by setUp(), and tearDown().

DatabaseTestCase::setUp ( )
See Also

Definition at line 37 of file

References getAffectedTables().

DatabaseTestCase::tearDown ( )
See Also

Definition at line 49 of file

References getAffectedTables().

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