Fix unit tests on PHP 8.3
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8212feefb9
commit
500fa5431d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue