Skip to content

Commit

Permalink
chore: make linters happy
Browse files Browse the repository at this point in the history
  • Loading branch information
arkaitzgarro committed Apr 7, 2024
1 parent 80f651c commit ed05ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/Collectors/JobCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ public function testJobProcessingListenerIgnored()
$this->jobMock->shouldReceive('resolveName')->once()->andReturn(self::JOB_NAME);
$this->agentMock->shouldNotReceive('startTransaction');
$this->agentMock->shouldNotReceive('getTransaction');
// For Laravel 11+

// For Laravel 11+
if (class_exists('\Illuminate\Support\Facades\Context')) {
\Illuminate\Support\Facades\Context::shouldReceive('hydrate');
Illuminate\Support\Facades\Context::shouldReceive('hydrate');
$this->jobMock->shouldReceive('payload');
}

Expand Down

0 comments on commit ed05ce5

Please sign in to comment.