Skip to content

Commit

Permalink
Merge branch 'main' into fix-octane-queued-reports
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 8, 2022
2 parents 89379ed + b18c6e4 commit 715664c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/FlareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@

$this->fakeClient = new FakeClient();

app()->singleton(Flare::class, fn () => new Flare($this->fakeClient));
app()->singleton(Flare::class, function () {
$flare = new Flare($this->fakeClient);

$flare->sendReportsImmediately();

return $flare;
});

$this->useTime('2019-01-01 12:34:56');

Expand Down
2 changes: 2 additions & 0 deletions tests/LogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
app()->singleton(Flare::class, function () use ($middleware) {
$flare = new Flare($this->fakeClient, null, []);

$flare->sendReportsImmediately();

foreach ($middleware as $singleMiddleware) {
$flare->registerMiddleware($singleMiddleware);
}
Expand Down

0 comments on commit 715664c

Please sign in to comment.