oms-QA/tests/Models/NullQAQuestionTest.php

43 lines
812 B
PHP
Executable File

<?php
/**
* Karaka
*
* 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\QA\tests\Models;
use Modules\QA\Models\NullQAQuestion;
/**
* @internal
*/
final class NullQAQuestionTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\QA\Models\NullQAQuestion
* @group module
*/
public function testNull() : void
{
self::assertInstanceOf('\Modules\QA\Models\QAQuestion', new NullQAQuestion());
}
/**
* @covers Modules\QA\Models\NullQAQuestion
* @group module
*/
public function testId() : void
{
$null = new NullQAQuestion(2);
self::assertEquals(2, $null->id);
}
}