From dc74bf65ca72df0373aa9fade1b76ad3f09a83aa Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 01/35] fix: align test namespace for Unit/Activity/FileSignedTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Activity/FileSignedTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Activity/FileSignedTest.php b/tests/php/Unit/Activity/FileSignedTest.php index 9aa827df99..22bf8c4304 100644 --- a/tests/php/Unit/Activity/FileSignedTest.php +++ b/tests/php/Unit/Activity/FileSignedTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Activity\Settings; +namespace OCA\Libresign\Tests\Unit\Activity; use OCA\Libresign\Activity\Settings\FileSigned; use OCA\Libresign\Events\SignedEvent; From e0579968f312d8046e8c06b3c9a8e4c80151f3c7 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 02/35] fix: align test namespace for Unit/CapabilitiesTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/CapabilitiesTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/CapabilitiesTest.php b/tests/php/Unit/CapabilitiesTest.php index edb0f5722d..b2286919c1 100644 --- a/tests/php/Unit/CapabilitiesTest.php +++ b/tests/php/Unit/CapabilitiesTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 03/35] fix: align test namespace for Unit/Controller/AEnvironmentPageAwareControllerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../php/Unit/Controller/AEnvironmentPageAwareControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php b/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php index aa0e0ba5ef..755c44b720 100644 --- a/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php +++ b/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit; +namespace OCA\Libresign\Tests\Unit\Controller; use OCA\Files_Trashbin\Trash\ITrashManager; use OCA\Libresign\AppInfo\Application; From 24e40aec0b8986910c92d7cea5c21fa9cab7fd82 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 04/35] fix: align test namespace for Unit/DataObjects/VisibleElementAssocTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/DataObjects/VisibleElementAssocTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/DataObjects/VisibleElementAssocTest.php b/tests/php/Unit/DataObjects/VisibleElementAssocTest.php index 9cfa53ab30..0353e96561 100644 --- a/tests/php/Unit/DataObjects/VisibleElementAssocTest.php +++ b/tests/php/Unit/DataObjects/VisibleElementAssocTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\DataObjects; use OCA\Libresign\DataObjects\VisibleElementAssoc; use OCA\Libresign\Db\FileElement; From f64d5f575c2cec6ad2998ad6a28eeabf5a4ed773 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 05/35] fix: align test namespace for Unit/Events/SignedEventFactoryTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Events/SignedEventFactoryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Events/SignedEventFactoryTest.php b/tests/php/Unit/Events/SignedEventFactoryTest.php index cd7fff26e0..fee04ab45a 100644 --- a/tests/php/Unit/Events/SignedEventFactoryTest.php +++ b/tests/php/Unit/Events/SignedEventFactoryTest.php @@ -2,6 +2,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Events; + use OCA\Libresign\Db\File as FileEntity; use OCA\Libresign\Db\SignRequest; use OCA\Libresign\Events\SignedEventFactory; From 169c68dd1db8d138850aa354e1c737669d553f04 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 06/35] fix: align test namespace for Unit/Handler/CertificateEngine/AEngineHandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php b/tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php index 95190ebec4..6b6aada788 100644 --- a/tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php +++ b/tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 07/35] fix: align test namespace for Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../Handler/CertificateEngine/CertificateEngineFactoryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php b/tests/php/Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php index 56a4c12354..45fc55c35d 100644 --- a/tests/php/Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php +++ b/tests/php/Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 08/35] fix: align test namespace for Unit/Handler/CertificateEngine/CertificateHelperTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../Unit/Handler/CertificateEngine/CertificateHelperTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/CertificateEngine/CertificateHelperTest.php b/tests/php/Unit/Handler/CertificateEngine/CertificateHelperTest.php index 0781a3086b..e1e6d05347 100644 --- a/tests/php/Unit/Handler/CertificateEngine/CertificateHelperTest.php +++ b/tests/php/Unit/Handler/CertificateEngine/CertificateHelperTest.php @@ -2,6 +2,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine; + use bovigo\vfs\vfsStream; use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Handler\CertificateEngine\CertificateHelper; From b7a305449aeb48be43aad0142ed4890c6ec2a68f Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 09/35] fix: align test namespace for Unit/Handler/CertificateEngine/OpenSslHandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php b/tests/php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php index 491172e765..4733a3791d 100644 --- a/tests/php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php +++ b/tests/php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 10/35] fix: align test namespace for Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../Handler/CertificateEngine/OrderCertificatesTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php b/tests/php/Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php index 6c857d377e..afb2de9581 100644 --- a/tests/php/Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php +++ b/tests/php/Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit; +namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine; use OCA\Libresign\Handler\CertificateEngine\OrderCertificatesTrait; From a13e33352ba3d0cf708fd6320c88a6efa05c31b3 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 11/35] fix: align test namespace for Unit/Handler/FooterHandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/FooterHandlerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/FooterHandlerTest.php b/tests/php/Unit/Handler/FooterHandlerTest.php index a28a52cb4e..fc9864e5da 100644 --- a/tests/php/Unit/Handler/FooterHandlerTest.php +++ b/tests/php/Unit/Handler/FooterHandlerTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 12/35] fix: align test namespace for Unit/Handler/PdfTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/PdfTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/PdfTest.php b/tests/php/Unit/Handler/PdfTest.php index 3973ea51ca..dc6f1cd93b 100644 --- a/tests/php/Unit/Handler/PdfTest.php +++ b/tests/php/Unit/Handler/PdfTest.php @@ -2,6 +2,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Handler; + use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Handler\PdfTk\Pdf; From 963ed50f4f78da70e147ae1b419924034667d0c7 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 13/35] fix: align test namespace for Unit/Handler/SignEngine/JSignPdfHandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php b/tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php index c235387e50..8a07c3c03b 100644 --- a/tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php +++ b/tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Handler\SignEngine; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\DataObjects\VisibleElementAssoc; From b6c4006518e96658359b80be30ca473d256b35c4 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 14/35] fix: align test namespace for Unit/Handler/SignEngine/Pkcs12HandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php b/tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php index d0cd90ac18..0d867d6193 100644 --- a/tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php +++ b/tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 15/35] fix: align test namespace for Unit/Handler/SignEngine/Pkcs7HandlerTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php b/tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php index 6c87df8dd9..b5aa26bf75 100644 --- a/tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php +++ b/tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 16/35] fix: align test namespace for Unit/Handler/SignEngine/SignEngineFactoryTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php b/tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php index e4aee19116..dae53149b4 100644 --- a/tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php +++ b/tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php @@ -2,6 +2,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Handler\SignEngine; + use OCA\Libresign\Handler\SignEngine\Pkcs12Handler; use OCA\Libresign\Handler\SignEngine\Pkcs7Handler; use OCA\Libresign\Handler\SignEngine\SignEngineFactory; From 9e461bbcf2950663c5f81d23a3d6805e2983a7aa Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 17/35] fix: align test namespace for Unit/Middleware/InjectionMiddlewareTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Middleware/InjectionMiddlewareTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Middleware/InjectionMiddlewareTest.php b/tests/php/Unit/Middleware/InjectionMiddlewareTest.php index 344c4b158a..3ae14dc650 100644 --- a/tests/php/Unit/Middleware/InjectionMiddlewareTest.php +++ b/tests/php/Unit/Middleware/InjectionMiddlewareTest.php @@ -2,6 +2,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Middleware; + use OC\AppFramework\Bootstrap\Coordinator; use OC\AppFramework\Services\InitialState; use OC\InitialStateService; From 80496bd8f31192a6047501872f7be6e18704faa3 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:06 -0300 Subject: [PATCH 18/35] fix: align test namespace for Unit/Service/Certificate/RulesServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/Certificate/RulesServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/Certificate/RulesServiceTest.php b/tests/php/Unit/Service/Certificate/RulesServiceTest.php index 7dbf9fe64a..73c8318ef1 100644 --- a/tests/php/Unit/Service/Certificate/RulesServiceTest.php +++ b/tests/php/Unit/Service/Certificate/RulesServiceTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Service\Certificate; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Service\Certificate\RulesService; From 96ed12d1f8143c272367ec1e4b5b1bbf1c8be200 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 19/35] fix: align test namespace for Unit/Service/IdentifyMethod/AccountTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/IdentifyMethod/AccountTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/IdentifyMethod/AccountTest.php b/tests/php/Unit/Service/IdentifyMethod/AccountTest.php index 364f8dd8c7..f1f974ebce 100644 --- a/tests/php/Unit/Service/IdentifyMethod/AccountTest.php +++ b/tests/php/Unit/Service/IdentifyMethod/AccountTest.php @@ -5,7 +5,7 @@ * SPDX-FileCopyrightText: 2020-2025 LibreCode coop and contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service\IdentifyMethod\SignatureMethod; +namespace OCA\Libresign\Tests\Unit\Service\IdentifyMethod; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Db\IdentifyMethod; From c3cbc4501c79b311a3bec9acdeed56d43583b4e9 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 20/35] fix: align test namespace for Unit/Service/IdentifyMethod/EmailTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/IdentifyMethod/EmailTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/IdentifyMethod/EmailTest.php b/tests/php/Unit/Service/IdentifyMethod/EmailTest.php index e9e1391b49..91db93101c 100644 --- a/tests/php/Unit/Service/IdentifyMethod/EmailTest.php +++ b/tests/php/Unit/Service/IdentifyMethod/EmailTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Service\IdentifyMethod; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Db\FileElementMapper; From 1c7a03edba230907223efb18c17191273b5e9caa Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 21/35] fix: align test namespace for Unit/Service/IdentifyMethod/PasswordTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/IdentifyMethod/PasswordTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/IdentifyMethod/PasswordTest.php b/tests/php/Unit/Service/IdentifyMethod/PasswordTest.php index 2492b17fb9..d87aea1f87 100644 --- a/tests/php/Unit/Service/IdentifyMethod/PasswordTest.php +++ b/tests/php/Unit/Service/IdentifyMethod/PasswordTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Service\IdentifyMethod; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Exception\LibresignException; From 32506d9e1aeb6cb4efabd9720e0dab59011f6f96 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 22/35] fix: align test namespace for Unit/Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php b/tests/php/Unit/Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php index 380d809fcd..014948b23b 100644 --- a/tests/php/Unit/Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php +++ b/tests/php/Unit/Service/IdentifyMethod/SignatureMethod/EmailTokenTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Service\IdentifyMethod\SignatureMethod; use OCA\Libresign\Db\IdentifyMethod; use OCA\Libresign\Service\IdentifyMethod\IdentifyService; From 719aa1c3aa6ee3453d08b438e16812be3729b85f Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 23/35] fix: align test namespace for Unit/Service/Install/SignSetupServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/Install/SignSetupServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Service/Install/SignSetupServiceTest.php b/tests/php/Unit/Service/Install/SignSetupServiceTest.php index bdb5e8a04f..645e560664 100644 --- a/tests/php/Unit/Service/Install/SignSetupServiceTest.php +++ b/tests/php/Unit/Service/Install/SignSetupServiceTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Service\Install; use bovigo\vfs\vfsStream; use OC\IntegrityCheck\Helpers\EnvironmentHelper; From d9732384151f89cf43288a03ac5ff36516968788 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 24/35] fix: align test namespace for Unit/Service/ReminderServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/ReminderServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/ReminderServiceTest.php b/tests/php/Unit/Service/ReminderServiceTest.php index f696f11162..8089d93ae3 100644 --- a/tests/php/Unit/Service/ReminderServiceTest.php +++ b/tests/php/Unit/Service/ReminderServiceTest.php @@ -7,6 +7,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Service; + use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Db\SignRequestMapper; use OCA\Libresign\Service\IdentifyMethodService; From fd544e663330acb253c5f28308234b2eb85cde1d Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 25/35] fix: align test namespace for Unit/Service/RequestSignatureServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/RequestSignatureServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/RequestSignatureServiceTest.php b/tests/php/Unit/Service/RequestSignatureServiceTest.php index 40ffd91143..40ce661ba3 100644 --- a/tests/php/Unit/Service/RequestSignatureServiceTest.php +++ b/tests/php/Unit/Service/RequestSignatureServiceTest.php @@ -7,6 +7,9 @@ declare(strict_types=1); + +namespace OCA\Libresign\Tests\Unit\Service; + use OCA\Libresign\Db\FileElementMapper; use OCA\Libresign\Db\FileMapper; use OCA\Libresign\Db\IdentifyMethodMapper; From dd51c4cf4a40b493537c38efb339fbb711002dfc Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 26/35] fix: align test namespace for Unit/Service/SignFileServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/SignFileServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/SignFileServiceTest.php b/tests/php/Unit/Service/SignFileServiceTest.php index 39a8093a21..93b7c18fdb 100644 --- a/tests/php/Unit/Service/SignFileServiceTest.php +++ b/tests/php/Unit/Service/SignFileServiceTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 27/35] fix: align test namespace for Unit/Service/SignRequest/StatusServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/SignRequest/StatusServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/SignRequest/StatusServiceTest.php b/tests/php/Unit/Service/SignRequest/StatusServiceTest.php index cb4391bcc5..73268939de 100644 --- a/tests/php/Unit/Service/SignRequest/StatusServiceTest.php +++ b/tests/php/Unit/Service/SignRequest/StatusServiceTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 28/35] fix: align test namespace for Unit/Service/SignatureBackgroundServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/SignatureBackgroundServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/SignatureBackgroundServiceTest.php b/tests/php/Unit/Service/SignatureBackgroundServiceTest.php index 7046dde0f7..dd09116aeb 100644 --- a/tests/php/Unit/Service/SignatureBackgroundServiceTest.php +++ b/tests/php/Unit/Service/SignatureBackgroundServiceTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 29/35] fix: align test namespace for Unit/Service/SignatureTextServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/SignatureTextServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/SignatureTextServiceTest.php b/tests/php/Unit/Service/SignatureTextServiceTest.php index 2518e0db17..372d54c4bc 100644 --- a/tests/php/Unit/Service/SignatureTextServiceTest.php +++ b/tests/php/Unit/Service/SignatureTextServiceTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 30/35] fix: align test namespace for Unit/Service/SignerElementsServiceTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Service/SignerElementsServiceTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/php/Unit/Service/SignerElementsServiceTest.php b/tests/php/Unit/Service/SignerElementsServiceTest.php index 5b688e7ad7..9c6998ced2 100644 --- a/tests/php/Unit/Service/SignerElementsServiceTest.php +++ b/tests/php/Unit/Service/SignerElementsServiceTest.php @@ -1,6 +1,9 @@ Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 31/35] fix: align test namespace for Unit/Settings/AdminSettingsTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Settings/AdminSettingsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Settings/AdminSettingsTest.php b/tests/php/Unit/Settings/AdminSettingsTest.php index 71ccc18fb8..98aa22ae9f 100644 --- a/tests/php/Unit/Settings/AdminSettingsTest.php +++ b/tests/php/Unit/Settings/AdminSettingsTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Settings; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Settings\AdminSettings; From c86f9d9e4d7da8d2b752350cc4dff153f8fb527d Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:17:07 -0300 Subject: [PATCH 32/35] fix: align test namespace for Unit/Settings/AdminTest.php Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Settings/AdminTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Unit/Settings/AdminTest.php b/tests/php/Unit/Settings/AdminTest.php index 90b75a2461..baa10df387 100644 --- a/tests/php/Unit/Settings/AdminTest.php +++ b/tests/php/Unit/Settings/AdminTest.php @@ -6,7 +6,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -namespace OCA\Libresign\Tests\Unit\Service; +namespace OCA\Libresign\Tests\Unit\Settings; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Handler\CertificateEngine\CertificateEngineFactory; From 9e0cf24fa6537e3835cd7c2421e673aa91dbb599 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:32:32 -0300 Subject: [PATCH 33/35] fix: add pending namespace Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../php/Unit/Controller/AEnvironmentPageAwareControllerTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php b/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php index 755c44b720..07efdc82f0 100644 --- a/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php +++ b/tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php @@ -13,6 +13,7 @@ use OCA\Libresign\Controller\AEnvironmentPageAwareController; use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Service\SignFileService; +use OCA\Libresign\Tests\Unit\TestCase; use OCP\Files\IRootFolder; use OCP\IL10N; use OCP\IRequest; From 4b532667bd45953772165351b19c225fcf6589f8 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 18:57:33 -0300 Subject: [PATCH 34/35] fix: add dependencies Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/PdfTest.php | 1 + tests/php/Unit/Service/ReminderServiceTest.php | 1 + tests/php/Unit/Service/SignFileServiceTest.php | 1 + tests/php/Unit/Service/SignatureTextServiceTest.php | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/php/Unit/Handler/PdfTest.php b/tests/php/Unit/Handler/PdfTest.php index dc6f1cd93b..16e1c9bf8a 100644 --- a/tests/php/Unit/Handler/PdfTest.php +++ b/tests/php/Unit/Handler/PdfTest.php @@ -5,6 +5,7 @@ namespace OCA\Libresign\Tests\Unit\Handler; +use RuntimeException; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Handler\PdfTk\Pdf; diff --git a/tests/php/Unit/Service/ReminderServiceTest.php b/tests/php/Unit/Service/ReminderServiceTest.php index 8089d93ae3..5d7b0a2755 100644 --- a/tests/php/Unit/Service/ReminderServiceTest.php +++ b/tests/php/Unit/Service/ReminderServiceTest.php @@ -10,6 +10,7 @@ namespace OCA\Libresign\Tests\Unit\Service; +use DateTime; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Db\SignRequestMapper; use OCA\Libresign\Service\IdentifyMethodService; diff --git a/tests/php/Unit/Service/SignFileServiceTest.php b/tests/php/Unit/Service/SignFileServiceTest.php index 93b7c18fdb..bdbc7f0787 100644 --- a/tests/php/Unit/Service/SignFileServiceTest.php +++ b/tests/php/Unit/Service/SignFileServiceTest.php @@ -9,6 +9,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +use DateTime; use bovigo\vfs\vfsStream; use OC\User\NoUserException; use OCA\Libresign\BackgroundJob\SignSingleFileJob; diff --git a/tests/php/Unit/Service/SignatureTextServiceTest.php b/tests/php/Unit/Service/SignatureTextServiceTest.php index 372d54c4bc..b8fd18c9e5 100644 --- a/tests/php/Unit/Service/SignatureTextServiceTest.php +++ b/tests/php/Unit/Service/SignatureTextServiceTest.php @@ -9,6 +9,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +use Imagick; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Service\SignatureTextService; use OCP\IAppConfig; From cfecbe81c2a035fae56f65ef781388e2c0da3612 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Mon, 16 Feb 2026 19:04:16 -0300 Subject: [PATCH 35/35] fix: cs Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- tests/php/Unit/Handler/PdfTest.php | 2 +- tests/php/Unit/Service/SignFileServiceTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php/Unit/Handler/PdfTest.php b/tests/php/Unit/Handler/PdfTest.php index 16e1c9bf8a..60ddad695f 100644 --- a/tests/php/Unit/Handler/PdfTest.php +++ b/tests/php/Unit/Handler/PdfTest.php @@ -5,7 +5,6 @@ namespace OCA\Libresign\Tests\Unit\Handler; -use RuntimeException; use OCA\Libresign\AppInfo\Application; use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Handler\PdfTk\Pdf; @@ -14,6 +13,7 @@ use OCP\IL10N; use OCP\L10N\IFactory as IL10NFactory; use PHPUnit\Framework\MockObject\MockObject; +use RuntimeException; /** * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors diff --git a/tests/php/Unit/Service/SignFileServiceTest.php b/tests/php/Unit/Service/SignFileServiceTest.php index bdbc7f0787..772bc7c55a 100644 --- a/tests/php/Unit/Service/SignFileServiceTest.php +++ b/tests/php/Unit/Service/SignFileServiceTest.php @@ -9,8 +9,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -use DateTime; use bovigo\vfs\vfsStream; +use DateTime; use OC\User\NoUserException; use OCA\Libresign\BackgroundJob\SignSingleFileJob; use OCA\Libresign\Db\File;