Open Monograph Press  3.3.0
ContentBaseTestCase Class Reference
Inheritance diagram for ContentBaseTestCase:

Protected Member Functions

 _getSubmissionElementName ()
 
 _handleStep1 ($data)
 
 _handleStep3 ($data)
 
 addToCatalog ()
 
 createSubmission ($data, $location='frontend')
 
 sendToReview ($type='External', $from='Submission')
 

Detailed Description

Base class for content-based tests.

Definition at line 23 of file ContentBaseTestCase.inc.php.

Member Function Documentation

◆ _getSubmissionElementName()

ContentBaseTestCase::_getSubmissionElementName ( )
protected

Get the submission element's name

Returns
string

Definition at line 139 of file ContentBaseTestCase.inc.php.

◆ _handleStep1()

ContentBaseTestCase::_handleStep1 (   $data)
protected

Handle any section information on submission step 1

Returns
string

Definition at line 62 of file ContentBaseTestCase.inc.php.

References fatalError().

◆ _handleStep3()

ContentBaseTestCase::_handleStep3 (   $data)
protected

Handle any section information on submission step 3

Returns
string

Definition at line 86 of file ContentBaseTestCase.inc.php.

◆ addToCatalog()

ContentBaseTestCase::addToCatalog ( )
protected

Add publication to catalog

Definition at line 172 of file ContentBaseTestCase.inc.php.

◆ createSubmission()

ContentBaseTestCase::createSubmission (   $data,
  $location = 'frontend' 
)
protected

Create a submission with the supplied data.

Parameters
$dataarray Associative array of submission information
$locationstring Whether or not the submission wll be created from the frontend or backend

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

◆ sendToReview()

ContentBaseTestCase::sendToReview (   $type = 'External',
  $from = 'Submission' 
)
protected

Send to review.

Parameters
$typestring "External" or "Internal"; type of review.
$fromstring "Internal" or "Submission" (for external reviews)

Definition at line 148 of file ContentBaseTestCase.inc.php.


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