mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Fix errors from files applications tests on PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
5cd5245ca8
commit
10dfdedcbd
1 changed files with 3 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class ApiControllerTest extends TestCase {
|
|||
$this->assertEquals($expected, $this->apiController->getThumbnail(0, 0, ''));
|
||||
}
|
||||
|
||||
public function testGetThumbnailInvaidImage() {
|
||||
public function testGetThumbnailInvalidImage() {
|
||||
$file = $this->createMock(File::class);
|
||||
$this->userFolder->method('get')
|
||||
->with($this->equalTo('unknown.jpg'))
|
||||
|
|
@ -184,6 +184,8 @@ class ApiControllerTest extends TestCase {
|
|||
->with($this->equalTo('known.jpg'))
|
||||
->willReturn($file);
|
||||
$preview = $this->createMock(ISimpleFile::class);
|
||||
$preview->method('getName')->willReturn('my name');
|
||||
$preview->method('getMTime')->willReturn(42);
|
||||
$this->preview->expects($this->once())
|
||||
->method('getPreview')
|
||||
->with($this->equalTo($file), 10, 10, true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue