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()
273273 */
274274 public function it_can_handle_encrypted_jobs ()
275275 {
276+ if (version_compare (app ()->version (), '8.0.0 ' , '< ' )) {
277+ $ this ->markTestSkipped ('Not supported by Laravel 7.x and below. ' );
278+ }
279+
276280 // Arrange
277281 OpenIdVerificator::fake ();
278282 Log::swap (new LogFake ());
@@ -282,7 +286,11 @@ public function it_can_handle_encrypted_jobs()
282286 $ job ->run ();
283287
284288 // 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+
286294 Log::assertLogged ('EncryptedJob:success ' );
287295 }
288296}
You can’t perform that action at this time.
0 commit comments