oms-HumanResourceManagement/tests/Models/NullEmployeeWorkHistoryTest.php

43 lines
991 B
PHP

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