Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit d0b4f46

Browse files
committed
Fixed tests
1 parent f39fa98 commit d0b4f46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/AsyncRedisQueueTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ public function test_delete_job()
138138

139139
public function test_clear_job()
140140
{
141+
if (! method_exists($this->queue, 'clear')) {
142+
$this->markTestSkipped('The Queue has no clear() method to test.');
143+
}
144+
141145
$job1 = new RedisQueueIntegrationTestJob(30);
142146
$job2 = new RedisQueueIntegrationTestJob(40);
143147

0 commit comments

Comments
 (0)