mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Enable Avatar tests as well for PHP>=8
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
23a4e17bd1
commit
58b6f35522
1 changed files with 0 additions and 20 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue