Skip to content

Commit

Permalink
try test
Browse files Browse the repository at this point in the history
  • Loading branch information
nagi1 committed Sep 8, 2024
1 parent f8700d4 commit f41b9cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
->andReturn((new Response(new Psr7Response(200, [], '{"requestId": "d2e4a4c1-0001-be87-19e5-0191d0c81658"}'))));
});

app(LogToNewrelicJob::class, [
'message' => 'Log message',
'context' => ['key' => 'value'],
])->handle();
(new LogToNewrelicJob(
'Log message',
['key' => 'value'],
))->handle();

Event::assertDispatched(NewrelicLogApiResponseEvent::class, function (NewrelicLogApiResponseEvent $event) {
return $event->statusCode === 200 && $event->jsonBody === ['requestId' => 'd2e4a4c1-0001-be87-19e5-0191d0c81658'];
Expand Down

0 comments on commit f41b9cf

Please sign in to comment.