Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 28, 2023
2 parents 4813ad3 + 160030e commit 20357a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/FakePdfTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use Illuminate\Support\Facades\Route;
use PHPUnit\Framework\ExpectationFailedException;
use Spatie\LaravelPdf\Facades\Pdf;
use function \Spatie\LaravelPdf\Support\pdf;

use function Spatie\LaravelPdf\Support\pdf;

beforeEach(function () {
Pdf::fake();
Expand All @@ -22,15 +22,15 @@
})->fails();

it('can determine the data that was passed to the view', function () {
Route::get('pdf', function() {
Route::get('pdf', function () {
return pdf('test')->inline();
});

$this
->get('pdf')
->assertSuccessful();

Pdf::assertRespondedWithPdf(function(\Spatie\LaravelPdf\Pdf $pdf) {
Pdf::assertRespondedWithPdf(function (Spatie\LaravelPdf\Pdf $pdf) {
return $pdf->viewName === 'test'
&& $pdf->isInline();
});
Expand Down
1 change: 0 additions & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\ExpectationFailedException;
use Spatie\Image\Image;
use Spatie\LaravelPdf\Tests\TestCase;
use Spatie\TemporaryDirectory\TemporaryDirectory;
Expand Down

0 comments on commit 20357a5

Please sign in to comment.