diff --git a/tests/unit/Collectors/JobCollectorTest.php b/tests/unit/Collectors/JobCollectorTest.php index 29db44e..6ddb321 100644 --- a/tests/unit/Collectors/JobCollectorTest.php +++ b/tests/unit/Collectors/JobCollectorTest.php @@ -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'); }