more tests and make classes final

This commit is contained in:
Dennis Eichhorn 2021-10-21 22:16:07 +02:00
parent 8ba227d4c5
commit e62320c011
2 changed files with 84 additions and 0 deletions

42
tests/Models/NullTag.php Normal file
View File

@ -0,0 +1,42 @@
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Tag\tests\Models;
use Modules\Tag\Models\NullTag;
/**
* @internal
*/
final class Null extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tag\Models\NullTag
* @group framework
*/
public function testNull() : void
{
self::assertInstanceOf('\Modules\Tag\Models\Tag', new NullTag());
}
/**
* @covers Modules\Tag\Models\NullTag
* @group framework
*/
public function testId() : void
{
$null = new NullTag(2);
self::assertEquals(2, $null->getId());
}
}

View File

@ -0,0 +1,42 @@
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Tag\tests\Models;
use Modules\Tag\Models\NullTagL11n;
/**
* @internal
*/
final class Null extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Tag\Models\NullTagL11n
* @group framework
*/
public function testNull() : void
{
self::assertInstanceOf('\Modules\Tag\Models\TagL11n', new NullTagL11n());
}
/**
* @covers Modules\Tag\Models\NullTagL11n
* @group framework
*/
public function testId() : void
{
$null = new NullTagL11n(2);
self::assertEquals(2, $null->getId());
}
}