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
dc74bf6
fix: align test namespace for Unit/Activity/FileSignedTest.php
vitormattos Feb 16, 2026
e057996
fix: align test namespace for Unit/CapabilitiesTest.php
vitormattos Feb 16, 2026
8ff3d4f
fix: align test namespace for Unit/Controller/AEnvironmentPageAwareCo…
vitormattos Feb 16, 2026
24e40ae
fix: align test namespace for Unit/DataObjects/VisibleElementAssocTes…
vitormattos Feb 16, 2026
f64d5f5
fix: align test namespace for Unit/Events/SignedEventFactoryTest.php
vitormattos Feb 16, 2026
169c68d
fix: align test namespace for Unit/Handler/CertificateEngine/AEngineH…
vitormattos Feb 16, 2026
0bc7237
fix: align test namespace for Unit/Handler/CertificateEngine/Certific…
vitormattos Feb 16, 2026
413df78
fix: align test namespace for Unit/Handler/CertificateEngine/Certific…
vitormattos Feb 16, 2026
b7a3054
fix: align test namespace for Unit/Handler/CertificateEngine/OpenSslH…
vitormattos Feb 16, 2026
3f0f322
fix: align test namespace for Unit/Handler/CertificateEngine/OrderCer…
vitormattos Feb 16, 2026
a13e333
fix: align test namespace for Unit/Handler/FooterHandlerTest.php
vitormattos Feb 16, 2026
d028740
fix: align test namespace for Unit/Handler/PdfTest.php
vitormattos Feb 16, 2026
963ed50
fix: align test namespace for Unit/Handler/SignEngine/JSignPdfHandler…
vitormattos Feb 16, 2026
b6c4006
fix: align test namespace for Unit/Handler/SignEngine/Pkcs12HandlerTe…
vitormattos Feb 16, 2026
9539ada
fix: align test namespace for Unit/Handler/SignEngine/Pkcs7HandlerTes…
vitormattos Feb 16, 2026
dfca9dd
fix: align test namespace for Unit/Handler/SignEngine/SignEngineFacto…
vitormattos Feb 16, 2026
9e461bb
fix: align test namespace for Unit/Middleware/InjectionMiddlewareTest…
vitormattos Feb 16, 2026
80496bd
fix: align test namespace for Unit/Service/Certificate/RulesServiceTe…
vitormattos Feb 16, 2026
96ed12d
fix: align test namespace for Unit/Service/IdentifyMethod/AccountTest…
vitormattos Feb 16, 2026
c3cbc45
fix: align test namespace for Unit/Service/IdentifyMethod/EmailTest.php
vitormattos Feb 16, 2026
1c7a03e
fix: align test namespace for Unit/Service/IdentifyMethod/PasswordTes…
vitormattos Feb 16, 2026
32506d9
fix: align test namespace for Unit/Service/IdentifyMethod/SignatureMe…
vitormattos Feb 16, 2026
719aa1c
fix: align test namespace for Unit/Service/Install/SignSetupServiceTe…
vitormattos Feb 16, 2026
d973238
fix: align test namespace for Unit/Service/ReminderServiceTest.php
vitormattos Feb 16, 2026
fd544e6
fix: align test namespace for Unit/Service/RequestSignatureServiceTes…
vitormattos Feb 16, 2026
dd51c4c
fix: align test namespace for Unit/Service/SignFileServiceTest.php
vitormattos Feb 16, 2026
b29fee1
fix: align test namespace for Unit/Service/SignRequest/StatusServiceT…
vitormattos Feb 16, 2026
1fe53b8
fix: align test namespace for Unit/Service/SignatureBackgroundService…
vitormattos Feb 16, 2026
b6fce9e
fix: align test namespace for Unit/Service/SignatureTextServiceTest.php
vitormattos Feb 16, 2026
e01d0ae
fix: align test namespace for Unit/Service/SignerElementsServiceTest.php
vitormattos Feb 16, 2026
284a8ea
fix: align test namespace for Unit/Settings/AdminSettingsTest.php
vitormattos Feb 16, 2026
c86f9d9
fix: align test namespace for Unit/Settings/AdminTest.php
vitormattos Feb 16, 2026
9e0cf24
fix: add pending namespace
vitormattos Feb 16, 2026
4b53266
fix: add dependencies
vitormattos Feb 16, 2026
cfecbe8
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