get overall coverage to 76%

This commit is contained in:
Dennis Eichhorn 2021-10-24 13:18:08 +02:00
parent 6f95b19504
commit e68f379d37
4 changed files with 13 additions and 85 deletions

View File

@ -24,4 +24,16 @@ namespace Modules\Profile\Models;
*/
final class NullContact extends Contact
{
/**
* Constructor
*
* @param int $id Model id
*
* @since 1.0.0
*/
public function __construct(int $id = 0)
{
$this->id = $id;
parent::__construct();
}
}

View File

@ -1,42 +0,0 @@
<?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());
}
}

View File

@ -19,7 +19,7 @@ use Modules\Profile\Models\NullContact;
/**
* @internal
*/
final class Null extends \PHPUnit\Framework\TestCase
final class NullContactTest extends \PHPUnit\Framework\TestCase
{
/**
* @covers Modules\Profile\Models\NullContact

View File

@ -1,42 +0,0 @@
<?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());
}
}