mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-15 09:48:41 +00:00
more tests and make classes final
This commit is contained in:
parent
f34c31d58e
commit
6be0963e9a
42
tests/Models/NullEditorDoc.php
Normal file
42
tests/Models/NullEditorDoc.php
Normal 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\Editor\tests\Models;
|
||||||
|
|
||||||
|
use Modules\Editor\Models\NullEditorDoc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
final class Null extends \PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @covers Modules\Editor\Models\NullEditorDoc
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testNull() : void
|
||||||
|
{
|
||||||
|
self::assertInstanceOf('\Modules\Editor\Models\EditorDoc', new NullEditorDoc());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Modules\Editor\Models\NullEditorDoc
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testId() : void
|
||||||
|
{
|
||||||
|
$null = new NullEditorDoc(2);
|
||||||
|
self::assertEquals(2, $null->getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user