<?php use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\View; use Spatie\FlareClient\Flare; use Spatie\LaravelIgnition\Tests\Mocks\FakeClient; beforeEach(function () { Artisan::call('view:clear'); app()['config']['logging.channels.flare'] = [ 'driver' => 'flare', ]; config()->set('logging.channels.flare.driver', 'flare'); config()->set('logging.default', 'flare'); config()->set('flare.key', 'some-key'); $this->fakeClient = new FakeClient(); app()->singleton(Flare::class, fn () => new Flare($this->fakeClient)); $this->useTime('2019-01-01 12:34:56'); View::addLocation(__DIR__.'/stubs/views'); }); it('can manually report exceptions', function () { \Spatie\LaravelIgnition\Facades\Flare::sendReportsImmediately(); \Spatie\LaravelIgnition\Facades\Flare::report(new Exception()); $this->fakeClient->assertRequestsSent(1); });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Commands | Folder | 0755 |
|
|
Context | Folder | 0755 |
|
|
ContextProviders | Folder | 0755 |
|
|
Exceptions | Folder | 0755 |
|
|
FlareMiddleware | Folder | 0755 |
|
|
Http | Folder | 0755 |
|
|
LogRecorder | Folder | 0755 |
|
|
Mocks | Folder | 0755 |
|
|
QueryRecorder | Folder | 0755 |
|
|
Recorders | Folder | 0755 |
|
|
Solutions | Folder | 0755 |
|
|
Support | Folder | 0755 |
|
|
TestClasses | Folder | 0755 |
|
|
Views | Folder | 0755 |
|
|
stubs | Folder | 0755 |
|
|
ErrorPageViewModelTest.php | File | 665 B | 0644 |
|
ExceptionSolutionTest.php | File | 3.07 KB | 0644 |
|
FlareTest.php | File | 956 B | 0644 |
|
HelpersTest.php | File | 103 B | 0644 |
|
IgnitionConfigTest.php | File | 1.39 KB | 0644 |
|
LogTest.php | File | 4.29 KB | 0644 |
|
Pest.php | File | 92 B | 0644 |
|
RenderIgnitionPageTest.php | File | 915 B | 0644 |
|
TestCase.php | File | 1.75 KB | 0644 |
|