Skip to content

Commit

Permalink
Fix failing resource nested test (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodevs authored Jan 3, 2025
1 parent eedca26 commit d73aabd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/fixtures/tests/pest/api-resource-nested.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
use App\Models\Comment;
use App\Models\Post;
use App\Models\User;
use JMac\Testing\Traits\AdditionalAssertions;
use function Pest\Faker\fake;
use function Pest\Laravel\assertModelMissing;
use function Pest\Laravel\delete;
use function Pest\Laravel\get;
use function Pest\Laravel\post;
use function Pest\Laravel\put;

pest()->use(AdditionalAssertions::class);

test('index behaves as expected', function (): void {
$post = Post::factory()->create();
$comments = Comment::factory()->count(3)->create();
Expand Down

0 comments on commit d73aabd

Please sign in to comment.