Open Monograph Press  3.3.0
SubmissionFileDAOTest Class Reference
Inheritance diagram for SubmissionFileDAOTest:
DatabaseTestCase PKPTestCase

Public Member Functions

 _compareFiles ($sourceFile, $targetFile)
 
 getTestGenre ($genreId)
 
 testNewDataObjectByGenreId ()
 
 testSubmissionFileCrud ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Protected Member Functions

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

Additional Inherited Members

- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 

Detailed Description

Test class for SubmissionFileDAO.

See also
SubmissionFileDAO

Definition at line 39 of file SubmissionFileDAOTest.php.

Member Function Documentation

◆ _compareFiles()

SubmissionFileDAOTest::_compareFiles (   $sourceFile,
  $targetFile 
)

Compare the common properties of monograph and artwork files even when the two files do not have the same implementation.

Parameters
$sourceFileSubmissionFile
$targetFileSubmissionFile

Definition at line 533 of file SubmissionFileDAOTest.php.

Referenced by testSubmissionFileCrud().

◆ getTestGenre()

SubmissionFileDAOTest::getTestGenre (   $genreId)

Return a test genre.

Parameters
$genreIdinteger
Returns
Genre the test genre.

Definition at line 496 of file SubmissionFileDAOTest.php.

References PKPApplication\get().

◆ setUp()

SubmissionFileDAOTest::setUp ( )
protected

Reimplemented from DatabaseTestCase.

Definition at line 42 of file SubmissionFileDAOTest.php.

References Registry\get(), PKPApplication\get(), and DAORegistry\registerDAO().

◆ tearDown()

SubmissionFileDAOTest::tearDown ( )
protected

Reimplemented from DatabaseTestCase.

Definition at line 93 of file SubmissionFileDAOTest.php.

◆ testNewDataObjectByGenreId()

SubmissionFileDAOTest::testNewDataObjectByGenreId ( )

Definition at line 475 of file SubmissionFileDAOTest.php.

References DAORegistry\getDAO().

◆ testSubmissionFileCrud()


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