From 3c3eac75f2be79708000fad0f22d65a7b5aa6e67 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 05:15:59 +0000 Subject: [PATCH] upgrade phpunit --- tests/Controller/SearchControllerTest.php | 9 ++-- tests/phpunit_default.xml | 56 ++++++++++++----------- 2 files changed, 32 insertions(+), 33 deletions(-) diff --git a/tests/Controller/SearchControllerTest.php b/tests/Controller/SearchControllerTest.php index f416fe1..09c5f6d 100755 --- a/tests/Controller/SearchControllerTest.php +++ b/tests/Controller/SearchControllerTest.php @@ -30,10 +30,10 @@ use phpOMS\Router\WebRouter; use phpOMS\Utils\TestUtils; /** - * @testdox Modules\Admin\tests\Controller\SearchControllerTest: Admin api controller - * * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Help\Controller\SearchController::class)] +#[\PHPUnit\Framework\Attributes\TestDox('Modules\Admin\tests\Controller\SearchControllerTest: Admin api controller')] final class SearchControllerTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; @@ -86,10 +86,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase TestUtils::setMember($this->module, 'app', $this->app); } - /** - * @covers \Modules\Help\Controller\SearchController - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testHelpSearch() : void { $response = new HttpResponse(); diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index d350430..e4a5639 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -1,31 +1,6 @@ - - - - ../ - - - ../vendor* - ../MainRepository* - ../Karaka* - ../Admin/Install/Application* - ../phpOMS* - ../tests* - ../*/tests* - ../**/tests* - */tests* - ../* - ../* - ../* - ../* - ../* - ../**/test* - ../**/Theme* - ../**/Admin/Routes* - ../**/Admin/Hooks* - ../**/Admin/Install* - ../Media/Files* - + + @@ -56,4 +31,31 @@ + + + ../ + + + ../vendor* + ../MainRepository* + ../Karaka* + ../Admin/Install/Application* + ../phpOMS* + ../tests* + ../*/tests* + ../**/tests* + */tests* + ../* + ../* + ../* + ../* + ../* + ../**/test* + ../**/Theme* + ../**/Admin/Routes* + ../**/Admin/Hooks* + ../**/Admin/Install* + ../Media/Files* + +