Skip to content

Commit 236ced2

Browse files
MAGETWO-69629: Locking all cronjobs with the same job code
1 parent f34a679 commit 236ced2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Cron/Model/ScheduleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function setUp()
3434
/**
3535
* If there are no currently locked jobs, locking one of them should succeed
3636
*/
37-
public function testTryLockJob_NoLockedJobsSucceeds()
37+
public function testTryLockJobNoLockedJobsSucceeds()
3838
{
3939
for ($i = 1; $i < 6; $i++) {
4040
$this->createSchedule("test_job", Schedule::STATUS_PENDING, 60 * $i);
@@ -47,7 +47,7 @@ public function testTryLockJob_NoLockedJobsSucceeds()
4747
/**
4848
* If the job is already locked, attempting to lock it again should fail
4949
*/
50-
public function testTryLockJob_AlreadyLockedFails()
50+
public function testTryLockJobAlreadyLockedFails()
5151
{
5252
$schedule = $this->createSchedule("test_job", Schedule::STATUS_RUNNING);
5353

@@ -57,7 +57,7 @@ public function testTryLockJob_AlreadyLockedFails()
5757
/**
5858
* If there's a job already locked, should not be able to lock another job
5959
*/
60-
public function testTryLockJob_OtherLockedFails()
60+
public function testTryLockJobOtherLockedFails()
6161
{
6262
$this->createSchedule("test_job", Schedule::STATUS_RUNNING);
6363
$schedule = $this->createSchedule("test_job", Schedule::STATUS_PENDING, 60);
@@ -68,7 +68,7 @@ public function testTryLockJob_OtherLockedFails()
6868
/**
6969
* Should be able to lock a job if a job with a different code is locked
7070
*/
71-
public function testTryLockJob_DifferentJobLocked()
71+
public function testTryLockJobDifferentJobLocked()
7272
{
7373
$this->createSchedule("test_job_other", Schedule::STATUS_RUNNING);
7474
$schedule = $this->createSchedule("test_job", Schedule::STATUS_PENDING);

0 commit comments

Comments
 (0)