From bf38b5a09a229c55fd02d33a06e0720f45294c32 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 14dd575d0f93ec599f84312f1fec60f16d9388db 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 c91be592cc86c45aa60ba498491d2ba0b8c57924 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 60c266e6e10988bd79eb1bf59472ea90c8209ab7 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 2e1fcc48ca0e7877bc0b71064ec7cf7cfbe2a574 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 03f7aff67f3b8b2f6bade36e69acc871e45956c0 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 9c872973652bc35758256ec27f386cc63f534923 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 4284ad298d8bf25eb5591d6fcbc287c32ad2ce37 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 19bb2aab1da695c0aefaaca9808b93fe6505ab8f 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 7bda85d1e02599f77c6e3d85f2547be95ff93837 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 151cc1996503fba4041159f765b5312d8508fde2 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 cc15c8fa7f410529658a1a76881033b0c90fe48a 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 173037996b6a93ef6a6b1583022bee15c8113e47 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 68ac4c6f2e2c613a433ae343972cbc040fee1194 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 f6c04df1b0eed234cf0685601194cc5bfd0d1cd1 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 616c35f47554b51b3ba0a4e8dc2890fbd4c893dd 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 0489d064d21dc9d768c66306b9ccc8c93c1cea3c 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 74b23ca0ad567aa6a155cf8b3ad36cd498cfbc9b 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 fc8f47f1215750fd9c9ace7ee726d7a451ddc46e 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 3d28664d92d4fc6e72e2e40e52c98f0ce5fa0ce5 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 e67b07d05fd97b75ea7595343c0cc64ea482a3cb 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 2f299adcdf440159a66531adbf236949611da71b 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 2646e87879537183bc5b616b3b52c8fd8cb37261 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;