diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-26 12:11:45 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-02 09:59:36 +0000 |
commit | f8c8b2cea9a71724595622734dfb75d9175d5a6f (patch) | |
tree | 2244af9173df62a90cb615e9805954f85ea75a1a | |
parent | e498aaf2c877c38f8e52b065e9ba56d9049f8dad (diff) | |
download | nextcloud-server-f8c8b2cea9a71724595622734dfb75d9175d5a6f.tar.gz nextcloud-server-f8c8b2cea9a71724595622734dfb75d9175d5a6f.zip |
Enable Avatar tests as well for PHP>=8
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | tests/lib/Avatar/UserAvatarTest.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 3570f2017d5..7833e3a4953 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -52,10 +52,6 @@ class UserAvatarTest extends \Test\TestCase { } public function testGetNoAvatar() { - if (PHP_MAJOR_VERSION > 7) { - $this->markTestSkipped('Only run on php7'); - } - $file = $this->createMock(ISimpleFile::class); $this->folder->method('newFile') ->willReturn($file); @@ -91,10 +87,6 @@ class UserAvatarTest extends \Test\TestCase { } public function testGetAvatarSizeMatch() { - if (PHP_MAJOR_VERSION > 7) { - $this->markTestSkipped('Only run on php7'); - } - $this->folder->method('fileExists') ->willReturnMap([ ['avatar.jpg', true], @@ -112,10 +104,6 @@ class UserAvatarTest extends \Test\TestCase { } public function testGetAvatarSizeMinusOne() { - if (PHP_MAJOR_VERSION > 7) { - $this->markTestSkipped('Only run on php7'); - } - $this->folder->method('fileExists') ->willReturnMap([ ['avatar.jpg', true], @@ -132,10 +120,6 @@ class UserAvatarTest extends \Test\TestCase { } public function testGetAvatarNoSizeMatch() { - if (PHP_MAJOR_VERSION > 7) { - $this->markTestSkipped('Only run on php7'); - } - $this->folder->method('fileExists') ->willReturnMap([ ['avatar.png', true], @@ -200,10 +184,6 @@ class UserAvatarTest extends \Test\TestCase { } public function testSetAvatar() { - if (PHP_MAJOR_VERSION > 7) { - $this->markTestSkipped('Only run on php7'); - } - $avatarFileJPG = $this->createMock(File::class); $avatarFileJPG->method('getName') ->willReturn('avatar.jpg'); |