From 8a7bd78df12340ddec2c8220f933749230f4fdbd Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 29 Oct 2024 16:54:53 +0100 Subject: [PATCH] [DOCS] Add comment for controller unit tests (#1502) Explain that those tests are not best practice anymore, and that we're in the process of migrating them to functional tests. Fixes #1499 --- Tests/Unit/Controller/FrontEndEditorControllerTest.php | 3 +++ Tests/Unit/Controller/TeaControllerTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Tests/Unit/Controller/FrontEndEditorControllerTest.php b/Tests/Unit/Controller/FrontEndEditorControllerTest.php index 45c7737..b871613 100644 --- a/Tests/Unit/Controller/FrontEndEditorControllerTest.php +++ b/Tests/Unit/Controller/FrontEndEditorControllerTest.php @@ -22,6 +22,9 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; /** + * Note: Unit tests for controllers are not considered best practice anymore. Instead, functional tests should be used. + * We're currently in the process of migrating all controller tests to functional tests. + * * @covers \TTN\Tea\Controller\FrontEndEditorController */ final class FrontEndEditorControllerTest extends UnitTestCase diff --git a/Tests/Unit/Controller/TeaControllerTest.php b/Tests/Unit/Controller/TeaControllerTest.php index ed46a8f..b8913d9 100644 --- a/Tests/Unit/Controller/TeaControllerTest.php +++ b/Tests/Unit/Controller/TeaControllerTest.php @@ -17,6 +17,9 @@ use TYPO3\TestingFramework\Core\AccessibleObjectInterface; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; /** + * Note: Unit tests for controllers are not considered best practice anymore. Instead, functional tests should be used. + * We're currently in the process of migrating all controller tests to functional tests. + * * @covers \TTN\Tea\Controller\TeaController */ final class TeaControllerTest extends UnitTestCase