mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-08 20:08:40 +00:00
more tests and make classes final
This commit is contained in:
parent
adf2160adf
commit
0b7beaecb2
42
tests/Models/NullContact.php
Normal file
42
tests/Models/NullContact.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\Profile\tests\Models;
|
||||||
|
|
||||||
|
use Modules\Profile\Models\NullContact;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
final class Null extends \PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullContact
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testNull() : void
|
||||||
|
{
|
||||||
|
self::assertInstanceOf('\Modules\Profile\Models\Contact', new NullContact());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullContact
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testId() : void
|
||||||
|
{
|
||||||
|
$null = new NullContact(2);
|
||||||
|
self::assertEquals(2, $null->getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
42
tests/Models/NullContactElement.php
Normal file
42
tests/Models/NullContactElement.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\Profile\tests\Models;
|
||||||
|
|
||||||
|
use Modules\Profile\Models\NullContactElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
final class Null extends \PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullContactElement
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testNull() : void
|
||||||
|
{
|
||||||
|
self::assertInstanceOf('\Modules\Profile\Models\ContactElement', new NullContactElement());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullContactElement
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testId() : void
|
||||||
|
{
|
||||||
|
$null = new NullContactElement(2);
|
||||||
|
self::assertEquals(2, $null->getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
42
tests/Models/NullProfile.php
Normal file
42
tests/Models/NullProfile.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\Profile\tests\Models;
|
||||||
|
|
||||||
|
use Modules\Profile\Models\NullProfile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
final class Null extends \PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullProfile
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testNull() : void
|
||||||
|
{
|
||||||
|
self::assertInstanceOf('\Modules\Profile\Models\Profile', new NullProfile());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Modules\Profile\Models\NullProfile
|
||||||
|
* @group framework
|
||||||
|
*/
|
||||||
|
public function testId() : void
|
||||||
|
{
|
||||||
|
$null = new NullProfile(2);
|
||||||
|
self::assertEquals(2, $null->getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user