From 1c120ce0c81f5aab6d78340478b6499c698b119a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 17 Oct 2023 00:13:58 +0000 Subject: [PATCH] fix jsonSerialize function call --- tests/Models/NullCommentListTest.php | 2 +- tests/Models/NullCommentTest.php | 2 +- tests/Models/NullCommentVoteTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Models/NullCommentListTest.php b/tests/Models/NullCommentListTest.php index 6181dd2..da44eb3 100755 --- a/tests/Models/NullCommentListTest.php +++ b/tests/Models/NullCommentListTest.php @@ -47,6 +47,6 @@ final class NullCommentListTest extends \PHPUnit\Framework\TestCase public function testJsonSerialize() : void { $null = new NullCommentList(2); - self::assertEquals(['id' => 2], $null); + self::assertEquals(['id' => 2], $null->jsonSerialize()); } } diff --git a/tests/Models/NullCommentTest.php b/tests/Models/NullCommentTest.php index eb038d4..79271e3 100755 --- a/tests/Models/NullCommentTest.php +++ b/tests/Models/NullCommentTest.php @@ -47,6 +47,6 @@ final class NullCommentTest extends \PHPUnit\Framework\TestCase public function testJsonSerialize() : void { $null = new NullComment(2); - self::assertEquals(['id' => 2], $null); + self::assertEquals(['id' => 2], $null->jsonSerialize()); } } diff --git a/tests/Models/NullCommentVoteTest.php b/tests/Models/NullCommentVoteTest.php index 83b34f5..1cd66b3 100755 --- a/tests/Models/NullCommentVoteTest.php +++ b/tests/Models/NullCommentVoteTest.php @@ -47,6 +47,6 @@ final class NullCommentVoteTest extends \PHPUnit\Framework\TestCase public function testJsonSerialize() : void { $null = new NullCommentVote(2); - self::assertEquals(['id' => 2], $null); + self::assertEquals(['id' => 2], $null->jsonSerialize()); } }