From 58b6f355227ccb6e3b9e45d9e2ad77c1f6e761c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 26 Oct 2021 12:11:45 +0200 Subject: [PATCH] Enable Avatar tests as well for PHP>=8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/lib/Avatar/UserAvatarTest.php | 20 -------------------- 1 file changed, 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'); -- 2.39.5