Skip to content

Commit 5f89477

Browse files
authored
Merge pull request #6906 from LibreSign/backport/6900/stable33
[stable33] fix: psr4 test namespaces
2 parents 591cff4 + cfecbe8 commit 5f89477

32 files changed

Lines changed: 75 additions & 13 deletions

tests/php/Unit/Activity/FileSignedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

9-
namespace OCA\Libresign\Tests\Activity\Settings;
9+
namespace OCA\Libresign\Tests\Unit\Activity;
1010

1111
use OCA\Libresign\Activity\Settings\FileSigned;
1212
use OCA\Libresign\Events\SignedEvent;

tests/php/Unit/CapabilitiesTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
declare(strict_types=1);
4+
5+
namespace OCA\Libresign\Tests\Unit;
6+
47
/**
58
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
69
* SPDX-License-Identifier: AGPL-3.0-or-later

tests/php/Unit/Controller/AEnvironmentPageAwareControllerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

9-
namespace OCA\Libresign\Tests\Unit;
9+
namespace OCA\Libresign\Tests\Unit\Controller;
1010

1111
use OCA\Files_Trashbin\Trash\ITrashManager;
1212
use OCA\Libresign\AppInfo\Application;
1313
use OCA\Libresign\Controller\AEnvironmentPageAwareController;
1414
use OCA\Libresign\Exception\LibresignException;
1515
use OCA\Libresign\Service\SignFileService;
16+
use OCA\Libresign\Tests\Unit\TestCase;
1617
use OCP\Files\IRootFolder;
1718
use OCP\IL10N;
1819
use OCP\IRequest;

tests/php/Unit/DataObjects/VisibleElementAssocTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

9-
namespace OCA\Libresign\Tests\Unit\Service;
9+
namespace OCA\Libresign\Tests\Unit\DataObjects;
1010

1111
use OCA\Libresign\DataObjects\VisibleElementAssoc;
1212
use OCA\Libresign\Db\FileElement;

tests/php/Unit/Events/SignedEventFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
declare(strict_types=1);
44

5+
6+
namespace OCA\Libresign\Tests\Unit\Events;
7+
58
use OCA\Libresign\Db\File as FileEntity;
69
use OCA\Libresign\Db\SignRequest;
710
use OCA\Libresign\Events\SignedEventFactory;

tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
declare(strict_types=1);
4+
5+
namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;
6+
47
/**
58
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
69
* SPDX-License-Identifier: AGPL-3.0-or-later

tests/php/Unit/Handler/CertificateEngine/CertificateEngineFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
declare(strict_types=1);
4+
5+
namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;
6+
47
/**
58
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
69
* SPDX-License-Identifier: AGPL-3.0-or-later

tests/php/Unit/Handler/CertificateEngine/CertificateHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
declare(strict_types=1);
44

5+
6+
namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;
7+
58
use bovigo\vfs\vfsStream;
69
use OCA\Libresign\Exception\LibresignException;
710
use OCA\Libresign\Handler\CertificateEngine\CertificateHelper;

tests/php/Unit/Handler/CertificateEngine/OpenSslHandlerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22

33
declare(strict_types=1);
4+
5+
namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;
6+
47
/**
58
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
69
* SPDX-License-Identifier: AGPL-3.0-or-later

tests/php/Unit/Handler/CertificateEngine/OrderCertificatesTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
88

9-
namespace OCA\Libresign\Tests\Unit;
9+
namespace OCA\Libresign\Tests\Unit\Handler\CertificateEngine;
1010

1111
use OCA\Libresign\Handler\CertificateEngine\OrderCertificatesTrait;
1212

0 commit comments

Comments
 (0)