diff options
-rw-r--r-- | apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Avatar/UserAvatarTest.php | 2 | ||||
-rw-r--r-- | tests/lib/ImageTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Traits/ClientServiceTrait.php | 2 | ||||
-rw-r--r-- | tests/lib/Traits/EncryptionTrait.php | 4 |
5 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php index 3dfef3ed012..887f48a1d04 100644 --- a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php @@ -39,7 +39,6 @@ use OCP\Calendar\Room\IManager as IRoomManager; use Test\TestCase; interface tmpI extends IResource, IMetadataProvider { - } class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase { diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 6e13c993e60..31f2a6ebf5b 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -82,7 +82,7 @@ class UserAvatarTest extends \Test\TestCase { })); $file->method('getContent') - ->willReturnCallback(function() use (&$data) { + ->willReturnCallback(function () use (&$data) { return $data; }); diff --git a/tests/lib/ImageTest.php b/tests/lib/ImageTest.php index 018d88c9d15..ebf00392d87 100644 --- a/tests/lib/ImageTest.php +++ b/tests/lib/ImageTest.php @@ -12,7 +12,6 @@ use OC; use OCP\IConfig; class ImageTest extends \Test\TestCase { - public static function tearDownAfterClass(): void { @unlink(OC::$SERVERROOT.'/tests/data/testimage2.png'); @unlink(OC::$SERVERROOT.'/tests/data/testimage2.jpg'); diff --git a/tests/lib/Traits/ClientServiceTrait.php b/tests/lib/Traits/ClientServiceTrait.php index 60313d5fa7a..c35a57268f7 100644 --- a/tests/lib/Traits/ClientServiceTrait.php +++ b/tests/lib/Traits/ClientServiceTrait.php @@ -49,7 +49,7 @@ trait ClientServiceTrait { * * @since Method available since Release 3.0.0 */ - abstract static public function any(); + abstract public static function any(); protected function setUpClientServiceTrait() { $this->clientService = $this->createMock(IClientService::class); diff --git a/tests/lib/Traits/EncryptionTrait.php b/tests/lib/Traits/EncryptionTrait.php index f0bbb138d44..6b74f7ca8ee 100644 --- a/tests/lib/Traits/EncryptionTrait.php +++ b/tests/lib/Traits/EncryptionTrait.php @@ -24,8 +24,8 @@ trait EncryptionTrait { abstract protected function registerStorageWrapper($name, $wrapper); // from phpunit - abstract static protected function markTestSkipped(string $message = ''): void; - abstract static protected function assertTrue($condition, string $message = ''): void; + abstract protected static function markTestSkipped(string $message = ''): void; + abstract protected static function assertTrue($condition, string $message = ''): void; private $encryptionWasEnabled; |