aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/OCS
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/OCS')
-rw-r--r--tests/lib/OCS/ApiHelperTest.php5
-rw-r--r--tests/lib/OCS/DiscoveryServiceTest.php4
2 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/OCS/ApiHelperTest.php b/tests/lib/OCS/ApiHelperTest.php
index fdbc1f4c538..93de6b22af7 100644
--- a/tests/lib/OCS/ApiHelperTest.php
+++ b/tests/lib/OCS/ApiHelperTest.php
@@ -14,10 +14,7 @@ use OC\OCS\ApiHelper;
use OCP\IRequest;
class ApiHelperTest extends \Test\TestCase {
- /**
- * @return array
- */
- public function versionDataScriptNameProvider(): array {
+ public static function versionDataScriptNameProvider(): array {
return [
// Valid script name
[
diff --git a/tests/lib/OCS/DiscoveryServiceTest.php b/tests/lib/OCS/DiscoveryServiceTest.php
index 3db3163e11d..2fce12ee3c0 100644
--- a/tests/lib/OCS/DiscoveryServiceTest.php
+++ b/tests/lib/OCS/DiscoveryServiceTest.php
@@ -45,7 +45,7 @@ class DiscoveryServiceTest extends TestCase {
$this->assertSame($expected, $result);
}
- public function dataTestIsSafeUrl() {
+ public static function dataTestIsSafeUrl(): array {
return [
['api/ocs/v1.php/foo', true],
['/api/ocs/v1.php/foo', true],
@@ -69,7 +69,7 @@ class DiscoveryServiceTest extends TestCase {
$this->assertSame($expected, $result);
}
- public function dataTestGetEndpoints() {
+ public static function dataTestGetEndpoints(): array {
return [
[['services' => ['myService' => ['endpoints' => []]]], 'myService', []],
[['services' => ['myService' => ['endpoints' => ['foo' => '/bar']]]], 'myService', ['foo' => '/bar']],