]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enable Avatar tests as well for PHP>=8
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 26 Oct 2021 10:11:45 +0000 (12:11 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 2 Nov 2021 10:49:52 +0000 (11:49 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tests/lib/Avatar/UserAvatarTest.php

index 31f2a6ebf5bd534a2770df03ba2ae638742ce611..6c902e10829c2e8898578b0416926034898073c1 100644 (file)
@@ -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');