Skip to content

Commit 4dc6afa

Browse files
committed
chore: Handle tests/ directory properly
Signed-off-by: Joas Schilling <[email protected]>
1 parent 9ccb4cf commit 4dc6afa

File tree

11 files changed

+38
-122
lines changed

11 files changed

+38
-122
lines changed

.reuse/dep5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ Upstream-Name: files_accesscontrol
33
Upstream-Contact: Nextcloud <[email protected]>
44
Source: https://github.com/nextcloud/files_accesscontrol
55

6-
Files: .gitattributes .github/CODEOWNERS .github/dependabot.yml .editorconfig composer.json composer.lock .gitignore tests/* .tx/config
6+
Files: .gitattributes .github/CODEOWNERS .github/dependabot.yml .editorconfig composer.json composer.lock .gitignore tests/Integration/data .tx/config
77
Copyright: none
88
License: CC0-1.0
99

10+
Files: tests/Integration/features/*.feature
11+
Copyright: 2023 Nextcloud GmbH and Nextcloud contributors
12+
License: CC0-1.0
13+
1014
Files: .github/issue_template.md .github/contributing.md
1115
Copyright: 2016 Nextcloud GmbH and Nextcloud contributors
1216
License: CC0-1.0

AUTHORS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
# Authors
66

77
- Arthur Schiwon <[email protected]>
8+
- Christoph Wurst <[email protected]>
9+
- David Toledo <[email protected]>
810
- Joas Schilling <[email protected]>
11+
- John Molakvoæ <[email protected]>
912
- Lukas Reschke <[email protected]>
1013
- Morris Jobke <[email protected]>
14+
- Robin Appelman <[email protected]>
15+
- Roeland Jago Douma <[email protected]>
16+
- Sergio Bertolín <[email protected]>
17+
- Thomas Müller <[email protected]>
18+
- Vincent Petry <[email protected]>

tests/Integration/app/appinfo/info.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?xml version="1.0"?>
2+
<!--
3+
- SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
4+
- SPDX-License-Identifier: AGPL-3.0-or-later
5+
-->
26
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
37
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
48
<id>files_accesscontrol_testing</id>

tests/Integration/app/appinfo/routes.php

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,8 @@
22

33
declare(strict_types=1);
44
/**
5-
* @author Joas Schilling <[email protected]>
6-
*
7-
* @copyright Copyright (c) 2023 Joas Schilling <[email protected]>
8-
*
9-
* @license GNU AGPL version 3 or any later version
10-
*
11-
* This program is free software: you can redistribute it and/or modify
12-
* it under the terms of the GNU Affero General Public License as
13-
* published by the Free Software Foundation, either version 3 of the
14-
* License, or (at your option) any later version.
15-
*
16-
* This program is distributed in the hope that it will be useful,
17-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU Affero General Public License for more details.
20-
*
21-
* You should have received a copy of the GNU Affero General Public License
22-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23-
*
5+
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
6+
* SPDX-License-Identifier: AGPL-3.0-or-later
247
*/
258

269
return [

tests/Integration/app/lib/Controller/EndpointController.php

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,8 @@
22

33
declare(strict_types=1);
44
/**
5-
* @author Joas Schilling <[email protected]>
6-
*
7-
* @copyright Copyright (c) 2023 Joas Schilling <[email protected]>
8-
*
9-
* @license GNU AGPL version 3 or any later version
10-
*
11-
* This program is free software: you can redistribute it and/or modify
12-
* it under the terms of the GNU Affero General Public License as
13-
* published by the Free Software Foundation, either version 3 of the
14-
* License, or (at your option) any later version.
15-
*
16-
* This program is distributed in the hope that it will be useful,
17-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU Affero General Public License for more details.
20-
*
21-
* You should have received a copy of the GNU Affero General Public License
22-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23-
*
5+
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
6+
* SPDX-License-Identifier: AGPL-3.0-or-later
247
*/
258

269
namespace OCA\FilesAccessControlTesting\Controller;

tests/Integration/config/behat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
13
default:
24
autoload:
35
'': '%paths.base%/../features/bootstrap'

tests/Integration/features/bootstrap/FeatureContext.php

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,11 @@
22

33
declare(strict_types=1);
44
/**
5-
* @author Joas Schilling <[email protected]>
6-
*
7-
* @copyright Copyright (c) 2023 Joas Schilling <[email protected]>
8-
*
9-
* @license GNU AGPL version 3 or any later version
10-
*
11-
* This program is free software: you can redistribute it and/or modify
12-
* it under the terms of the GNU Affero General Public License as
13-
* published by the Free Software Foundation, either version 3 of the
14-
* License, or (at your option) any later version.
15-
*
16-
* This program is distributed in the hope that it will be useful,
17-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU Affero General Public License for more details.
20-
*
21-
* You should have received a copy of the GNU Affero General Public License
22-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23-
*
5+
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
6+
* SPDX-FileCopyrightText: 2016 David Toledo <[email protected]>
7+
* SPDX-FileCopyrightText: 2016 Sergio Bertolín <[email protected]>
8+
* SPDX-FileCopyrightText: 2016 Thomas Müller <[email protected]>
9+
* SPDX-License-Identifier: AGPL-3.0-or-later
2410
*/
2511
require __DIR__ . '/../../vendor/autoload.php';
2612
require __DIR__ . '/WebDav.php';

tests/Integration/features/bootstrap/WebDav.php

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
11
<?php
22
/**
3-
* @copyright Copyright (c) 2016 Sergio Bertolin <[email protected]>
4-
*
5-
* @author Christoph Wurst <[email protected]>
6-
* @author David Toledo <[email protected]>
7-
* @author Joas Schilling <[email protected]>
8-
* @author John Molakvoæ <[email protected]>
9-
* @author Lukas Reschke <[email protected]>
10-
* @author Morris Jobke <[email protected]>
11-
* @author Robin Appelman <[email protected]>
12-
* @author Roeland Jago Douma <[email protected]>
13-
* @author Sergio Bertolin <[email protected]>
14-
* @author Sergio Bertolín <[email protected]>
15-
* @author Thomas Müller <[email protected]>
16-
* @author Vincent Petry <[email protected]>
17-
*
18-
* @license GNU AGPL version 3 or any later version
19-
*
20-
* This program is free software: you can redistribute it and/or modify
21-
* it under the terms of the GNU Affero General Public License as
22-
* published by the Free Software Foundation, either version 3 of the
23-
* License, or (at your option) any later version.
24-
*
25-
* This program is distributed in the hope that it will be useful,
26-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
27-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28-
* GNU Affero General Public License for more details.
29-
*
30-
* You should have received a copy of the GNU Affero General Public License
31-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
32-
*
3+
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
4+
* SPDX-FileCopyrightText: 2016 Sergio Bertolín <[email protected]>
5+
* SPDX-License-Identifier: AGPL-3.0-or-later
336
*/
347
use GuzzleHttp\Client as GClient;
358
use PHPUnit\Framework\Assert;

tests/Integration/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
4+
# SPDX-License-Identifier: AGPL-3.0-or-later
5+
36
APP_NAME=files_accesscontrol
47

58
APP_INTEGRATION_DIR=$PWD

tests/Unit/StorageWrapperTest.php

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,8 @@
22

33
declare(strict_types=1);
44
/**
5-
* @copyright Copyright (c) 2016 Joas Schilling <[email protected]>
6-
*
7-
* @license GNU AGPL version 3 or any later version
8-
*
9-
* This program is free software: you can redistribute it and/or modify
10-
* it under the terms of the GNU Affero General Public License as
11-
* published by the Free Software Foundation, either version 3 of the
12-
* License, or (at your option) any later version.
13-
*
14-
* This program is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
* GNU Affero General Public License for more details.
18-
*
19-
* You should have received a copy of the GNU Affero General Public License
20-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21-
*
5+
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
6+
* SPDX-License-Identifier: AGPL-3.0-or-later
227
*/
238

249
namespace OCA\FilesAccessControl\Tests\Unit;

0 commit comments

Comments
 (0)