Skip to content

Commit 7c3551b

Browse files
committed
fix rector
1 parent 3e74451 commit 7c3551b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/DatabaseHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function testRetry(): void
344344
$handler = new DatabaseHandler($this->config);
345345
$count = $handler->retry(1, 'queue1');
346346

347-
$this->assertSame($count, 1);
347+
$this->assertSame(1, $count);
348348

349349
$this->seeInDatabase('queue_jobs', [
350350
'id' => 3,

tests/PredisHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function testRetry(): void
288288
$handler = new PredisHandler($this->config);
289289
$count = $handler->retry(1, 'queue1');
290290

291-
$this->assertSame($count, 1);
291+
$this->assertSame(1, $count);
292292

293293
$predis = self::getPrivateProperty($handler, 'predis');
294294
$this->assertSame(2, $predis->zcard('queues:queue1:default'));

tests/RedisHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function testRetry(): void
254254
$handler = new RedisHandler($this->config);
255255
$count = $handler->retry(1, 'queue1');
256256

257-
$this->assertSame($count, 1);
257+
$this->assertSame(1, $count);
258258

259259
$redis = self::getPrivateProperty($handler, 'redis');
260260
$this->assertSame(2, $redis->zCard('queues:queue1:default'));

0 commit comments

Comments
 (0)