aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/AppStore
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/AppStore')
-rw-r--r--tests/lib/App/AppStore/Fetcher/AppDiscoverFetcherTest.php2
-rw-r--r--tests/lib/App/AppStore/Fetcher/AppFetcherTest.php2
-rw-r--r--tests/lib/App/AppStore/Version/VersionParserTest.php6
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/App/AppStore/Fetcher/AppDiscoverFetcherTest.php b/tests/lib/App/AppStore/Fetcher/AppDiscoverFetcherTest.php
index e7652d5c50c..5a9c37af7fb 100644
--- a/tests/lib/App/AppStore/Fetcher/AppDiscoverFetcherTest.php
+++ b/tests/lib/App/AppStore/Fetcher/AppDiscoverFetcherTest.php
@@ -104,7 +104,7 @@ class AppDiscoverFetcherTest extends FetcherBase {
}
}
- public function dataGetETag(): array {
+ public static function dataGetETag(): array {
return [
'file not found' => [null, true],
'empty file' => [null, false, ''],
diff --git a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
index 61fe24be1a9..0d311d8878a 100644
--- a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
+++ b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
@@ -1840,7 +1840,7 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
$this->registry = $this->createMock(IRegistry::class);
$this->fetcher = $this->getMockBuilder(AppFetcher::class)
- ->setMethods(['getChannel'])
+ ->onlyMethods(['getChannel'])
->setConstructorArgs([
$factory,
$this->clientService,
diff --git a/tests/lib/App/AppStore/Version/VersionParserTest.php b/tests/lib/App/AppStore/Version/VersionParserTest.php
index 5bd9ee16b39..c4dd78af496 100644
--- a/tests/lib/App/AppStore/Version/VersionParserTest.php
+++ b/tests/lib/App/AppStore/Version/VersionParserTest.php
@@ -22,7 +22,7 @@ class VersionParserTest extends TestCase {
/**
* @return array
*/
- public function versionProvider() {
+ public static function versionProvider(): array {
return [
[
'*',
@@ -66,7 +66,7 @@ class VersionParserTest extends TestCase {
$this->assertEquals($expected, $this->versionParser->getVersion($input));
}
-
+
public function testGetVersionException(): void {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Version cannot be parsed: BogusVersion');
@@ -74,7 +74,7 @@ class VersionParserTest extends TestCase {
$this->versionParser->getVersion('BogusVersion');
}
-
+
public function testGetVersionExceptionWithMultiple(): void {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Version cannot be parsed: >=8.2 <=9.1a');