Fix unit tests on PHP 8.3

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-10-16 10:16:22 +02:00
parent 8212feefb9
commit 500fa5431d
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
3 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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>