Browse Source
Fix unit tests on PHP 8.3
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/40931/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
3 changed files with
6 additions and
3 deletions
-
apps/files_sharing/tests/Controller/ExternalShareControllerTest.php
-
autotest.sh
-
tests/phpunit-autotest.xml
|
|
|
@ -32,6 +32,7 @@ use OCP\IRequest; |
|
|
|
use OCP\Http\Client\IResponse; |
|
|
|
use OCP\Http\Client\IClient; |
|
|
|
use OCA\Files_Sharing\External\Manager; |
|
|
|
use PHPUnit\Framework\MockObject\MockObject; |
|
|
|
|
|
|
|
/** |
|
|
|
* Class ExternalShareControllerTest |
|
|
|
@ -43,6 +44,8 @@ class ExternalShareControllerTest extends \Test\TestCase { |
|
|
|
private $request; |
|
|
|
/** @var \OCA\Files_Sharing\External\Manager */ |
|
|
|
private $externalManager; |
|
|
|
/** @var IConfig|MockObject */ |
|
|
|
private $config; |
|
|
|
/** @var IClientService */ |
|
|
|
private $clientService; |
|
|
|
|
|
|
|
|
|
|
|
@ -401,8 +401,8 @@ function execute_tests { |
|
|
|
echo "No coverage" |
|
|
|
fi |
|
|
|
|
|
|
|
echo "$PHPUNIT" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" |
|
|
|
"$PHPUNIT" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" |
|
|
|
echo "$PHPUNIT" --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" |
|
|
|
"$PHPUNIT" --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" |
|
|
|
RESULT=$? |
|
|
|
|
|
|
|
if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ |
|
|
|
timeoutForLargeTests="900" |
|
|
|
convertDeprecationsToExceptions="true" |
|
|
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"> |
|
|
|
<testsuite name="ownCloud"> |
|
|
|
<testsuite name="Nextcloud Server"> |
|
|
|
<directory suffix=".php">lib/</directory> |
|
|
|
<directory suffix=".php">Core/</directory> |
|
|
|
<directory suffix=".php">Test/</directory> |
|
|
|
|