Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Nlm30XmlFilterTestCase Class Reference
Inheritance diagram for Nlm30XmlFilterTestCase:
PKPTestCase Nlm30Nlm23CrosswalkFilterTest PKPSubmissionNlm30XmlFilterTest

Protected Member Functions

getCitation ($citationDescription)
 
getCitationDao ()
 
 getMockedRegistryKeys ()
 
getTestSubmission ()
 
 setUp ()
 
- 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

Basic test class for filters that handle NLM XML.

Definition at line 21 of file Nlm30XmlFilterTestCase.inc.php.

Member Function Documentation

& Nlm30XmlFilterTestCase::getCitation (   $citationDescription)
protected

Inject the given meta-data into a new citation object.

Parameters
$metadataDescriptionMetadataDescription
Returns
Citation

Definition at line 95 of file Nlm30XmlFilterTestCase.inc.php.

Referenced by Nlm30Nlm23CrosswalkFilterTest\testExecute(), and PKPSubmissionNlm30XmlFilterTest\testExecute().

& Nlm30XmlFilterTestCase::getCitationDao ( )
protected

Return the CitationDAO

Returns
CitationDAO

Definition at line 71 of file Nlm30XmlFilterTestCase.inc.php.

Referenced by Nlm30Nlm23CrosswalkFilterTest\testExecute(), and PKPSubmissionNlm30XmlFilterTest\testExecute().

Nlm30XmlFilterTestCase::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 34 of file Nlm30XmlFilterTestCase.inc.php.

& Nlm30XmlFilterTestCase::getTestSubmission ( )
protected

Instantiate a minimal mock submission for testing.

Returns
Submission

Definition at line 79 of file Nlm30XmlFilterTestCase.inc.php.

Referenced by Nlm30Nlm23CrosswalkFilterTest\testExecute(), and PKPSubmissionNlm30XmlFilterTest\testExecute().

Nlm30XmlFilterTestCase::setUp ( )
protected

Definition at line 41 of file Nlm30XmlFilterTestCase.inc.php.

References DAORegistry\getDAO().


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