Open Journal Systems  3.3.0
ScheduledTaskHelperTest Class Reference
Inheritance diagram for ScheduledTaskHelperTest:
PKPTestCase

Public Member Functions

 notifyExecutionResultTestsDataProvider ()
 
 testNotifyExecutionResultError ($taskId, $taskName, $message)
 
 testNotifyExecutionResultSuccess ($taskId, $taskName, $message)
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Additional Inherited Members

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

Detailed Description

Tests for the ScheduledTask class.

See also
ScheduledTask

Definition at line 20 of file ScheduledTaskHelperTest.php.

Member Function Documentation

◆ notifyExecutionResultTestsDataProvider()

ScheduledTaskHelperTest::notifyExecutionResultTestsDataProvider ( )

All notifyExecutionResult tests data provider.

Returns
array

Definition at line 81 of file ScheduledTaskHelperTest.php.

◆ testNotifyExecutionResultError()

ScheduledTaskHelperTest::testNotifyExecutionResultError (   $taskId,
  $taskName,
  $message 
)

Test ScheduledTaskHelper::notifyExecutionResult() method when the scheduled task result is false.

Parameters
$taskIdstring
$taskNamestring
$messagestring @dataProvider notifyExecutionResultTestsDataProvider
See also
ScheduledTaskHelper::notifyExecutionResult

Definition at line 31 of file ScheduledTaskHelperTest.php.

◆ testNotifyExecutionResultSuccess()

ScheduledTaskHelperTest::testNotifyExecutionResultSuccess (   $taskId,
  $taskName,
  $message 
)

Test ScheduledTaskHelper::notifyExecutionResult() method when the scheduled task result is true.

Parameters
$taskIdstring
$taskNamestring
$messagestring @dataProvider notifyExecutionResultTestsDataProvider
See also
ScheduledTaskHelper::notifyExecutionResult

Definition at line 58 of file ScheduledTaskHelperTest.php.


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