oms-HumanResourceTimeRecording/tests/Models/NullSessionTest.php
2023-06-17 03:13:27 +02:00

43 lines
917 B
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\HumanResourceTimeRecording\tests\Models;
use Modules\HumanResourceTimeRecording\Models\NullSession;
/**
* @internal
*/
final class NullSessionTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\HumanResourceTimeRecording\Models\NullSession
* @group framework
*/
public function testNull() : void
{
self::assertInstanceOf('\Modules\HumanResourceTimeRecording\Models\Session', new NullSession());
}
/**
* @covers Modules\HumanResourceTimeRecording\Models\NullSession
* @group framework
*/
public function testId() : void
{
$null = new NullSession(2);
self::assertEquals(2, $null->id);
}
}