Skip to content

Commit 1c8ee02

Browse files
Merge pull request #64 from stackkit/feature/fix-encrypt-test
Fix test
2 parents ea75521 + 89fba0d commit 1c8ee02

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/TaskHandlerTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)