mirror of
https://github.com/nextcloud/server.git
synced 2026-02-22 01:11:23 -05:00
fix(ShareAPIControllerTest): Fix return types of DateTimeZone
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This commit is contained in:
parent
fa75c1b659
commit
acda4ff072
1 changed files with 3 additions and 4 deletions
|
|
@ -125,6 +125,8 @@ class ShareAPIControllerTest extends TestCase {
|
|||
return $fileInfo->getMimeType() === 'mimeWithPreview';
|
||||
});
|
||||
$this->dateTimeZone = $this->createMock(IDateTimeZone::class);
|
||||
$this->dateTimeZone->method('getTimeZone')
|
||||
->willReturn(new \DateTimeZone('UTC'));
|
||||
$this->logger = $this->createMock(LoggerInterface::class);
|
||||
$this->factory = $this->createMock(IProviderFactory::class);
|
||||
$this->mailer = $this->createMock(IMailer::class);
|
||||
|
|
@ -158,10 +160,7 @@ class ShareAPIControllerTest extends TestCase {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ShareAPIController&MockObject
|
||||
*/
|
||||
private function mockFormatShare() {
|
||||
private function mockFormatShare(): ShareAPIController&MockObject {
|
||||
return $this->getMockBuilder(ShareAPIController::class)
|
||||
->setConstructorArgs([
|
||||
$this->appName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue