Ajout jsonserializable

This commit is contained in:
Gregory Letellier
2023-11-13 16:16:12 +01:00
parent bdb0a88e58
commit 43729579fa
4 changed files with 24 additions and 2 deletions

View File

@@ -67,6 +67,9 @@ test("collection", function () {
expect($collo)->toBeInstanceOf(Collection::class);
expect(count($collo))->toBe(2);
$json = json_encode($collo);
expect($json)->toBeJson();
$pluck = $collo->pluck("key");
expect($pluck)->toBeInstanceOf(Collection::class);
expect(count($pluck))->toBe(2);