From e12174075a3d74770be7c3f8233f4e14f88111cc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 8 Oct 2020 15:12:24 +0200 Subject: [PATCH] fix tests and replace file_exists --- tests/Models/CommentListMapperTest.php | 4 ++++ tests/Models/CommentListTest.php | 8 ++++++++ tests/Models/CommentMapperTest.php | 4 ++++ tests/Models/CommentTest.php | 8 ++++++++ 4 files changed, 24 insertions(+) diff --git a/tests/Models/CommentListMapperTest.php b/tests/Models/CommentListMapperTest.php index 2f9aee5..8d41463 100755 --- a/tests/Models/CommentListMapperTest.php +++ b/tests/Models/CommentListMapperTest.php @@ -24,6 +24,10 @@ use Modules\Comments\Models\CommentListMapper; */ class CommentListMapperTest extends \PHPUnit\Framework\TestCase { + /** + * @covers Modules\Comments\Models\CommentListMapper + * @group module + */ public function testCRUD() : void { $list = new CommentList(); diff --git a/tests/Models/CommentListTest.php b/tests/Models/CommentListTest.php index 18ababc..77e04e0 100755 --- a/tests/Models/CommentListTest.php +++ b/tests/Models/CommentListTest.php @@ -22,6 +22,10 @@ use Modules\Comments\Models\CommentList; */ class CommentListTest extends \PHPUnit\Framework\TestCase { + /** + * @covers Modules\Comments\Models\CommentList + * @group module + */ public function testDefault() : void { $list = new CommentList(); @@ -29,6 +33,10 @@ class CommentListTest extends \PHPUnit\Framework\TestCase self::assertEquals([], $list->getComments()); } + /** + * @covers Modules\Comments\Models\CommentList + * @group module + */ public function testGetSet() : void { $list = new CommentList(); diff --git a/tests/Models/CommentMapperTest.php b/tests/Models/CommentMapperTest.php index 8623bc8..50241fc 100755 --- a/tests/Models/CommentMapperTest.php +++ b/tests/Models/CommentMapperTest.php @@ -24,6 +24,10 @@ use Modules\Comments\Models\CommentMapper; */ class CommentMapperTest extends \PHPUnit\Framework\TestCase { + /** + * @covers Modules\Comments\Models\CommentMapper + * @group module + */ public function testCRUD() : void { $comment = new Comment(); diff --git a/tests/Models/CommentTest.php b/tests/Models/CommentTest.php index 8a9193d..7ba7ab7 100755 --- a/tests/Models/CommentTest.php +++ b/tests/Models/CommentTest.php @@ -23,6 +23,10 @@ use Modules\Comments\Models\NullComment; */ class CommentTest extends \PHPUnit\Framework\TestCase { + /** + * @covers Modules\Comments\Models\Comment + * @group module + */ public function testDefault() : void { $comment = new Comment(); @@ -37,6 +41,10 @@ class CommentTest extends \PHPUnit\Framework\TestCase self::assertEquals('', $comment->getContent()); } + /** + * @covers Modules\Comments\Models\Comment + * @group module + */ public function testGetSet() : void { $comment = new Comment();