Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setUp () | |
testTryLockJobNoLockedJobsSucceeds () | |
testTryLockJobAlreadyLockedFails () | |
testTryLockJobAlreadyLockedSucceeds () | |
testTryLockJobOtherLockedFails () | |
testTryLockJobDifferentJobLocked () | |
Protected Attributes | |
$dateTime | |
Test \Magento\Cron\Model\Schedule
@magentoDbIsolation enabled
Definition at line 16 of file ScheduleTest.php.
setUp | ( | ) |
Definition at line 28 of file ScheduleTest.php.
testTryLockJobAlreadyLockedFails | ( | ) |
If the job is already locked, attempting to lock it again should fail
Definition at line 50 of file ScheduleTest.php.
testTryLockJobAlreadyLockedSucceeds | ( | ) |
If the job is already locked but lock time less than 1 day ago, attempting to lock it again should fail
Definition at line 60 of file ScheduleTest.php.
testTryLockJobDifferentJobLocked | ( | ) |
Should be able to lock a job if a job with a different code is locked
Definition at line 92 of file ScheduleTest.php.
testTryLockJobNoLockedJobsSucceeds | ( | ) |
If there are no currently locked jobs, locking one of them should succeed
Definition at line 37 of file ScheduleTest.php.
testTryLockJobOtherLockedFails | ( | ) |
If there's a job already locked, should not be able to lock another job
Definition at line 81 of file ScheduleTest.php.
|
protected |
Definition at line 26 of file ScheduleTest.php.