mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-01-10 16:48:41 +00:00
45 lines
1.0 KiB
PHP
Executable File
45 lines
1.0 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Support\tests\Models;
|
|
|
|
use Modules\Support\Models\NullSupportApp;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Support\Models\NullSupportApp::class)]
|
|
final class NullSupportAppTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
|
public function testNull() : void
|
|
{
|
|
self::assertInstanceOf('\Modules\Support\Models\SupportApp', new NullSupportApp());
|
|
}
|
|
|
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
|
public function testId() : void
|
|
{
|
|
$null = new NullSupportApp(2);
|
|
self::assertEquals(2, $null->id);
|
|
}
|
|
|
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
|
public function testJsonSerialize() : void
|
|
{
|
|
$null = new NullSupportApp(2);
|
|
self::assertEquals(['id' => 2], $null->jsonSerialize());
|
|
}
|
|
}
|