Skip to content

Commit

Permalink
Enable Avatar tests as well for PHP>=8
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Nov 2, 2021
1 parent efd689e commit 8bc3bed
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/lib/Avatar/UserAvatarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public function avatarTextData() {
}

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);
Expand Down Expand Up @@ -91,10 +87,6 @@ public function testGetNoAvatar() {
}

public function testGetAvatarSizeMatch() {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}

$this->folder->method('fileExists')
->willReturnMap([
['avatar.jpg', true],
Expand All @@ -112,10 +104,6 @@ public function testGetAvatarSizeMatch() {
}

public function testGetAvatarSizeMinusOne() {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}

$this->folder->method('fileExists')
->willReturnMap([
['avatar.jpg', true],
Expand All @@ -132,10 +120,6 @@ public function testGetAvatarSizeMinusOne() {
}

public function testGetAvatarNoSizeMatch() {
if (PHP_MAJOR_VERSION > 7) {
$this->markTestSkipped('Only run on php7');
}

$this->folder->method('fileExists')
->willReturnMap([
['avatar.png', true],
Expand Down Expand Up @@ -200,10 +184,6 @@ public function testExistsPNG() {
}

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');
Expand Down

0 comments on commit 8bc3bed

Please sign in to comment.