File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,10 @@ public function test_max_attempts_in_combination_with_retry_until()
273
273
*/
274
274
public function it_can_handle_encrypted_jobs ()
275
275
{
276
+ if (version_compare (app ()->version (), '8.0.0 ' , '< ' )) {
277
+ $ this ->markTestSkipped ('Not supported by Laravel 7.x and below. ' );
278
+ }
279
+
276
280
// Arrange
277
281
OpenIdVerificator::fake ();
278
282
Log::swap (new LogFake ());
@@ -282,7 +286,11 @@ public function it_can_handle_encrypted_jobs()
282
286
$ job ->run ();
283
287
284
288
// Assert
285
- $ this ->assertEquals ('O:26:"Tests\Support\EncryptedJob":0:{} ' , decrypt ($ job ->payload ['data ' ]['command ' ]));
289
+ $ this ->assertStringContainsString (
290
+ 'O:26:"Tests\Support\EncryptedJob" ' ,
291
+ decrypt ($ job ->payload ['data ' ]['command ' ]),
292
+ );
293
+
286
294
Log::assertLogged ('EncryptedJob:success ' );
287
295
}
288
296
}
You can’t perform that action at this time.
0 commit comments