aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/App/PlatformRepositoryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/PlatformRepositoryTest.php')
-rw-r--r--tests/lib/App/PlatformRepositoryTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/App/PlatformRepositoryTest.php b/tests/lib/App/PlatformRepositoryTest.php
index 921d24159c9..01d49d84832 100644
--- a/tests/lib/App/PlatformRepositoryTest.php
+++ b/tests/lib/App/PlatformRepositoryTest.php
@@ -6,7 +6,7 @@
*/
namespace Test\App;
-use OC;
+use OC\App\PlatformRepository;
class PlatformRepositoryTest extends \Test\TestCase {
/**
@@ -15,12 +15,12 @@ class PlatformRepositoryTest extends \Test\TestCase {
* @param $input
*/
public function testVersion($input, $expected): void {
- $pr = new OC\App\PlatformRepository();
+ $pr = new PlatformRepository();
$normalizedVersion = $pr->normalizeVersion($input);
$this->assertEquals($expected, $normalizedVersion);
}
- public function providesVersions() {
+ public static function providesVersions(): array {
return [
'none' => ['1.0.0', '1.0.0.0'],
'none/2' => ['1.2.3.4', '1.2.3.4'],