Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bf38b5a
fix: align test namespace for Unit/Activity/FileSignedTest.php
vitormattos Feb 16, 2026
14dd575
fix: align test namespace for Unit/CapabilitiesTest.php
vitormattos Feb 16, 2026
79ec88d
fix: align test namespace for Unit/Controller/AEnvironmentPageAwareCo…
vitormattos Feb 16, 2026
c91be59
fix: align test namespace for Unit/DataObjects/VisibleElementAssocTes…
vitormattos Feb 16, 2026
60c266e
fix: align test namespace for Unit/Events/SignedEventFactoryTest.php
vitormattos Feb 16, 2026
2e1fcc4
fix: align test namespace for Unit/Handler/CertificateEngine/AEngineH…
vitormattos Feb 16, 2026
4cff15e
fix: align test namespace for Unit/Handler/CertificateEngine/Certific…
vitormattos Feb 16, 2026
5defeb6
fix: align test namespace for Unit/Handler/CertificateEngine/Certific…
vitormattos Feb 16, 2026
03f7aff
fix: align test namespace for Unit/Handler/CertificateEngine/OpenSslH…
vitormattos Feb 16, 2026
1f3aa68
fix: align test namespace for Unit/Handler/CertificateEngine/OrderCer…
vitormattos Feb 16, 2026
9c87297
fix: align test namespace for Unit/Handler/FooterHandlerTest.php
vitormattos Feb 16, 2026
435a048
fix: align test namespace for Unit/Handler/PdfTest.php
vitormattos Feb 16, 2026
4284ad2
fix: align test namespace for Unit/Handler/SignEngine/JSignPdfHandler…
vitormattos Feb 16, 2026
19bb2aa
fix: align test namespace for Unit/Handler/SignEngine/Pkcs12HandlerTe…
vitormattos Feb 16, 2026
e4a225c
fix: align test namespace for Unit/Handler/SignEngine/Pkcs7HandlerTes…
vitormattos Feb 16, 2026
38b26dc
fix: align test namespace for Unit/Handler/SignEngine/SignEngineFacto…
vitormattos Feb 16, 2026
7bda85d
fix: align test namespace for Unit/Middleware/InjectionMiddlewareTest…
vitormattos Feb 16, 2026
151cc19
fix: align test namespace for Unit/Service/Certificate/RulesServiceTe…
vitormattos Feb 16, 2026
cc15c8f
fix: align test namespace for Unit/Service/IdentifyMethod/AccountTest…
vitormattos Feb 16, 2026
1730379
fix: align test namespace for Unit/Service/IdentifyMethod/EmailTest.php
vitormattos Feb 16, 2026
68ac4c6
fix: align test namespace for Unit/Service/IdentifyMethod/PasswordTes…
vitormattos Feb 16, 2026
f6c04df
fix: align test namespace for Unit/Service/IdentifyMethod/SignatureMe…
vitormattos Feb 16, 2026
616c35f
fix: align test namespace for Unit/Service/Install/SignSetupServiceTe…
vitormattos Feb 16, 2026
0489d06
fix: align test namespace for Unit/Service/ReminderServiceTest.php
vitormattos Feb 16, 2026
74b23ca
fix: align test namespace for Unit/Service/RequestSignatureServiceTes…
vitormattos Feb 16, 2026
fc8f47f
fix: align test namespace for Unit/Service/SignFileServiceTest.php
vitormattos Feb 16, 2026
481d481
fix: align test namespace for Unit/Service/SignRequest/StatusServiceT…
vitormattos Feb 16, 2026
9290038
fix: align test namespace for Unit/Service/SignatureBackgroundService…
vitormattos Feb 16, 2026
517702f
fix: align test namespace for Unit/Service/SignatureTextServiceTest.php
vitormattos Feb 16, 2026
b140688
fix: align test namespace for Unit/Service/SignerElementsServiceTest.php
vitormattos Feb 16, 2026
c5132eb
fix: align test namespace for Unit/Settings/AdminSettingsTest.php
vitormattos Feb 16, 2026
3d28664
fix: align test namespace for Unit/Settings/AdminTest.php
vitormattos Feb 16, 2026
e67b07d
fix: add pending namespace
vitormattos Feb 16, 2026
2f299ad
fix: add dependencies
vitormattos Feb 16, 2026
2646e87
fix: cs
vitormattos Feb 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/php/Unit/Activity/FileSignedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/CapabilitiesTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit;

/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
* 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;
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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/DataObjects/VisibleElementAssocTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Events/SignedEventFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;

/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Handler/FooterHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
4 changes: 4 additions & 0 deletions tests/php/Unit/Handler/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -10,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
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Handler/SignEngine/JSignPdfHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Handler/SignEngine/Pkcs12HandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler\SignEngine;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Handler/SignEngine/Pkcs7HandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Handler\SignEngine;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Handler/SignEngine/SignEngineFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Middleware/InjectionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Service/Certificate/RulesServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Service/IdentifyMethod/AccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Service/IdentifyMethod/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Service/IdentifyMethod/PasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Service/Install/SignSetupServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions tests/php/Unit/Service/ReminderServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

declare(strict_types=1);


namespace OCA\Libresign\Tests\Unit\Service;

use DateTime;
use OCA\Libresign\AppInfo\Application;
use OCA\Libresign\Db\SignRequestMapper;
use OCA\Libresign\Service\IdentifyMethodService;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Service/RequestSignatureServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions tests/php/Unit/Service/SignFileServiceTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Service;

/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

use bovigo\vfs\vfsStream;
use DateTime;
use OC\User\NoUserException;
use OCA\Libresign\BackgroundJob\SignSingleFileJob;
use OCA\Libresign\Db\File;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Service/SignRequest/StatusServiceTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Service\SignRequest;

/**
* SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Service/SignatureBackgroundServiceTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Service;

/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
4 changes: 4 additions & 0 deletions tests/php/Unit/Service/SignatureTextServiceTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Service;

/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

use Imagick;
use OCA\Libresign\AppInfo\Application;
use OCA\Libresign\Service\SignatureTextService;
use OCP\IAppConfig;
Expand Down
3 changes: 3 additions & 0 deletions tests/php/Unit/Service/SignerElementsServiceTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

namespace OCA\Libresign\Tests\Unit\Service;

/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Settings/AdminSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Settings/AdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading