From e68f379d37c54a8f69a5e34a3a592be10f1b82e4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 24 Oct 2021 13:18:08 +0200 Subject: [PATCH] get overall coverage to 76% --- Models/NullContact.php | 12 ++++++ tests/Models/NullContactElement.php | 42 ------------------- .../{NullContact.php => NullContactTest.php} | 2 +- tests/Models/NullProfile.php | 42 ------------------- 4 files changed, 13 insertions(+), 85 deletions(-) delete mode 100644 tests/Models/NullContactElement.php rename tests/Models/{NullContact.php => NullContactTest.php} (92%) delete mode 100644 tests/Models/NullProfile.php diff --git a/Models/NullContact.php b/Models/NullContact.php index ecb6ebb..376067e 100755 --- a/Models/NullContact.php +++ b/Models/NullContact.php @@ -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(); + } } diff --git a/tests/Models/NullContactElement.php b/tests/Models/NullContactElement.php deleted file mode 100644 index 87ae858..0000000 --- a/tests/Models/NullContactElement.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -} diff --git a/tests/Models/NullContact.php b/tests/Models/NullContactTest.php similarity index 92% rename from tests/Models/NullContact.php rename to tests/Models/NullContactTest.php index 69a4bd8..9a55e3e 100644 --- a/tests/Models/NullContact.php +++ b/tests/Models/NullContactTest.php @@ -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 diff --git a/tests/Models/NullProfile.php b/tests/Models/NullProfile.php deleted file mode 100644 index 61b5962..0000000 --- a/tests/Models/NullProfile.php +++ /dev/null @@ -1,42 +0,0 @@ -getId()); - } -}