mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
2.0.3 (2022-09-12)
- Update composer packages - Added WoodpeckerCI tests - Updated links in composer package - Stricter typing
This commit is contained in:
parent
f9a22e7b8a
commit
05cae402b5
21 changed files with 215 additions and 524 deletions
|
@ -34,7 +34,7 @@ class JobTest extends TestCase
|
|||
\Resque\Resque::enqueue('jobs', '\Resque\Test\TestJob');
|
||||
|
||||
$job = \Resque\Job\Job::reserve('jobs');
|
||||
if ($job == false) {
|
||||
if (is_null($job)) {
|
||||
$this->fail('Job could not be reserved.');
|
||||
}
|
||||
$this->assertEquals('jobs', $job->queue);
|
||||
|
@ -76,7 +76,7 @@ class JobTest extends TestCase
|
|||
{
|
||||
\Resque\Resque::enqueue('jobs', '\Resque\Test\TestJob');
|
||||
\Resque\Job\Job::reserve('jobs');
|
||||
$this->assertFalse(\Resque\Job\Job::reserve('jobs'));
|
||||
$this->assertNull(\Resque\Job\Job::reserve('jobs'));
|
||||
}
|
||||
|
||||
public function testRecreatedJobMatchesExistingJob()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue