From 303dadfaa9c274a529c4cc55791cb71fbb9e67f9 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Mon, 14 Aug 2023 08:11:37 +0200 Subject: sharebymail: remove ILogger and upgrade to PHP 8 syntax Signed-off-by: Benjamin Gaussorgues --- tests/lib/Share20/ShareByMailProviderTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/lib/Share20/ShareByMailProviderTest.php b/tests/lib/Share20/ShareByMailProviderTest.php index 5116dfe9e58..0cdd13fe17c 100644 --- a/tests/lib/Share20/ShareByMailProviderTest.php +++ b/tests/lib/Share20/ShareByMailProviderTest.php @@ -35,7 +35,6 @@ use OCP\Files\IRootFolder; use OCP\IConfig; use OCP\IDBConnection; use OCP\IL10N; -use OCP\ILogger; use OCP\IURLGenerator; use OCP\IUserManager; use OCP\Mail\IMailer; @@ -43,6 +42,7 @@ use OCP\Security\IHasher; use OCP\Security\ISecureRandom; use OCP\Share\IShare; use PHPUnit\Framework\MockObject\MockObject; +use Psr\Log\LoggerInterface; use Test\TestCase; /** @@ -79,7 +79,7 @@ class ShareByMailProviderTest extends TestCase { /** @var IConfig|MockObject */ protected $config; - /** @var ILogger|MockObject */ + /** @var LoggerInterface|MockObject */ private $logger; /** @var IHasher|MockObject */ @@ -108,7 +108,7 @@ class ShareByMailProviderTest extends TestCase { $this->l10n = $this->createMock(IL10N::class); $this->defaults = $this->getMockBuilder(Defaults::class)->disableOriginalConstructor()->getMock(); $this->urlGenerator = $this->createMock(IURLGenerator::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->activityManager = $this->createMock(\OCP\Activity\IManager::class); $this->settingsManager = $this->createMock(SettingsManager::class); $this->hasher = $this->createMock(IHasher::class); @@ -162,8 +162,8 @@ class ShareByMailProviderTest extends TestCase { * @throws \OCP\DB\Exception */ private function addShareToDB($shareType, $sharedWith, $sharedBy, $shareOwner, - $itemType, $fileSource, $fileTarget, $permissions, $token, $expiration, - $parent) { + $itemType, $fileSource, $fileTarget, $permissions, $token, $expiration, + $parent) { $qb = $this->dbConn->getQueryBuilder(); $qb->insert('share'); -- cgit v1.2.3