oms-Editor/tests/Models/NullEditorDocHistoryTest.php
Dennis Eichhorn 2e5fbc77d1
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:05 +00:00

45 lines
1.1 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Editor\tests\Models;
use Modules\Editor\Models\NullEditorDocHistory;
/**
* @internal
*/
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Editor\Models\NullEditorDocHistory::class)]
final class NullEditorDocHistoryTest extends \PHPUnit\Framework\TestCase
{
#[\PHPUnit\Framework\Attributes\Group('module')]
public function testNull() : void
{
self::assertInstanceOf('\Modules\Editor\Models\EditorDocHistory', new NullEditorDocHistory());
}
#[\PHPUnit\Framework\Attributes\Group('module')]
public function testId() : void
{
$null = new NullEditorDocHistory(2);
self::assertEquals(2, $null->id);
}
#[\PHPUnit\Framework\Attributes\Group('module')]
public function testJsonSerialize() : void
{
$null = new NullEditorDocHistory(2);
self::assertEquals(['id' => 2], $null->jsonSerialize());
}
}