diff options
Diffstat (limited to 'tests/lib/App')
-rw-r--r-- | tests/lib/App/AppManagerTest.php | 4 | ||||
-rw-r--r-- | tests/lib/App/PlatformRepositoryTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index 48d722761bc..3dd5073731c 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -50,7 +50,7 @@ class AppManagerTest extends TestCase { }); $config->expects($this->any()) ->method('setValue') - ->willReturnCallback(function ($app, $key, $value) use (&$appConfig) { + ->willReturnCallback(function ($app, $key, $value) use (&$appConfig): void { if (!isset($appConfig[$app])) { $appConfig[$app] = []; } @@ -171,7 +171,7 @@ class AppManagerTest extends TestCase { } public static function dataGetAppIcon(): array { - $nothing = function ($appId) { + $nothing = function ($appId): void { self::assertEquals('test', $appId); throw new \RuntimeException(); }; diff --git a/tests/lib/App/PlatformRepositoryTest.php b/tests/lib/App/PlatformRepositoryTest.php index 8f621eebce9..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,7 +15,7 @@ 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); } |