-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for all API controller methods
Signed-off-by: MB-Finski <[email protected]>
- Loading branch information
Showing
36 changed files
with
3,754 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,7 @@ js/ | |
.vscode-upload.json | ||
.*.sw* | ||
node_modules | ||
vendor | ||
tests/.phpunit.result.cache | ||
.php-cs-fixer.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
// SPDX-FileCopyrightText: Sami Finnilä <[email protected]> | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
require_once './vendor/autoload.php'; | ||
|
||
use Nextcloud\CodingStandard\Config; | ||
|
||
$config = new Config(); | ||
$config | ||
->getFinder() | ||
->ignoreVCSIgnored(true) | ||
->notPath('build') | ||
->notPath('l10n') | ||
->notPath('src') | ||
->notPath('vendor') | ||
->in(__DIR__); | ||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Authors | ||
|
||
* Julien Veyssier <[email protected]> (Developper) | ||
|
||
* Sami Finnilä <[email protected]> (Secondary developer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "nextcloud/integration_gitlab", | ||
"authors": [ | ||
{ | ||
"name": "Julien Veyssier", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Sami Finnilä", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"league/commonmark": "^2.3", | ||
"php": "^8.0" | ||
}, | ||
"scripts": { | ||
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", | ||
"cs:check": "php-cs-fixer fix --dry-run --diff", | ||
"cs:fix": "php-cs-fixer fix", | ||
"psalm": "psalm.phar", | ||
"test:unit": "phpunit -c tests/phpunit.xml" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true, | ||
"classmap-authoritative": true, | ||
"platform": { | ||
"php": "8.0" | ||
} | ||
}, | ||
"require-dev": { | ||
"ext-mbstring": "*", | ||
"phpunit/phpunit": "^9.5", | ||
"nextcloud/coding-standard": "^1.1" | ||
} | ||
} |
Oops, something went wrong.