@@ -345,6 +345,7 @@ public function testLater(): void
345345 'id ' => 2 ,
346346 'status ' => Status::RESERVED ->value ,
347347 ]);
348+ $ this ->assertInstanceOf (QueueJob::class, $ queueJob );
348349
349350 $ result = $ handler ->later ($ queueJob , 60 );
350351
@@ -367,6 +368,7 @@ public function testFailedAndKeepJob(): void
367368 $ queueJob = $ handler ->pop ('queue1 ' , ['default ' ]);
368369
369370 $ err = new Exception ('Sample exception ' );
371+ $ this ->assertInstanceOf (QueueJob::class, $ queueJob );
370372 $ result = $ handler ->failed ($ queueJob , $ err , true );
371373
372374 $ this ->assertTrue ($ result );
@@ -387,6 +389,7 @@ public function testFailedAndDontKeepJob(): void
387389 $ queueJob = $ handler ->pop ('queue1 ' , ['default ' ]);
388390
389391 $ err = new Exception ('Sample exception ' );
392+ $ this ->assertInstanceOf (QueueJob::class, $ queueJob );
390393 $ result = $ handler ->failed ($ queueJob , $ err , false );
391394
392395 $ this ->assertTrue ($ result );
@@ -407,6 +410,7 @@ public function testDone(): void
407410 {
408411 $ handler = new DatabaseHandler ($ this ->config );
409412 $ queueJob = $ handler ->pop ('queue1 ' , ['default ' ]);
413+ $ this ->assertInstanceOf (QueueJob::class, $ queueJob );
410414
411415 $ result = $ handler ->done ($ queueJob );
412416
@@ -477,6 +481,7 @@ public function testFlush(): void
477481 $ queueJob = $ handler ->pop ('queue1 ' , ['default ' ]);
478482
479483 $ err = new Exception ('Sample exception here ' );
484+ $ this ->assertInstanceOf (QueueJob::class, $ queueJob );
480485 $ result = $ handler ->failed ($ queueJob , $ err , true );
481486
482487 $ this ->assertTrue ($ result );
0 commit comments