Skip to content

Commit

Permalink
Tweak test to show issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Sep 19, 2024
1 parent 3d36e19 commit a46ab4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/PartialsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Lazy;
use Spatie\LaravelData\Resolvers\RequestQueryStringPartialsResolver;
use Spatie\LaravelData\Resource;
use Spatie\LaravelData\Support\Partials\Partial;
use Spatie\LaravelData\Support\Partials\PartialsCollection;
use Spatie\LaravelData\Support\Partials\PartialType;
Expand Down Expand Up @@ -869,7 +870,7 @@ public function __construct(
});

it('can work with lazy laravel data collections', function () {
$dataClass = new class () extends Data {
$dataClass = new class () extends Resource {
#[DataCollectionOf(SimpleData::class)]
public Lazy|Collection $lazyCollection;

Expand Down

0 comments on commit a46ab4e

Please sign in to comment.