fix jsonSerialize function call

This commit is contained in:
Dennis Eichhorn 2023-10-17 00:13:58 +00:00
parent 76abcf0c6e
commit cb2b0acb46
5 changed files with 5 additions and 5 deletions

View File

@ -47,6 +47,6 @@ final class NullCollectionTest extends \PHPUnit\Framework\TestCase
public function testJsonSerialize() : void public function testJsonSerialize() : void
{ {
$null = new NullCollection(2); $null = new NullCollection(2);
self::assertEquals(['id' => 2], $null); self::assertEquals(['id' => 2], $null->jsonSerialize());
} }
} }

View File

@ -47,6 +47,6 @@ final class NullMediaContentTest extends \PHPUnit\Framework\TestCase
public function testJsonSerialize() : void public function testJsonSerialize() : void
{ {
$null = new NullMediaContent(2); $null = new NullMediaContent(2);
self::assertEquals(['id' => 2], $null); self::assertEquals(['id' => 2], $null->jsonSerialize());
} }
} }

View File

@ -47,6 +47,6 @@ final class NullMediaTest extends \PHPUnit\Framework\TestCase
public function testJsonSerialize() : void public function testJsonSerialize() : void
{ {
$null = new NullMedia(2); $null = new NullMedia(2);
self::assertEquals(['id' => 2], $null); self::assertEquals(['id' => 2], $null->jsonSerialize());
} }
} }

View File

@ -47,6 +47,6 @@ final class NullMediaTypeTest extends \PHPUnit\Framework\TestCase
public function testJsonSerialize() : void public function testJsonSerialize() : void
{ {
$null = new NullMediaType(2); $null = new NullMediaType(2);
self::assertEquals(['id' => 2], $null); self::assertEquals(['id' => 2], $null->jsonSerialize());
} }
} }

View File

@ -47,6 +47,6 @@ final class NullReferenceTest extends \PHPUnit\Framework\TestCase
public function testJsonSerialize() : void public function testJsonSerialize() : void
{ {
$null = new NullReference(2); $null = new NullReference(2);
self::assertEquals(['id' => 2], $null); self::assertEquals(['id' => 2], $null->jsonSerialize());
} }
} }