From f421fd25ba8a302ce394c35de287cb24c9f61202 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 9 Mar 2021 20:42:47 +0100 Subject: Move requesthandler controller to LoggerInterface * LoggerInterface * executeUpdate * log exception when there is one (just so we ahve the trace) Signed-off-by: Roeland Jago Douma --- .../tests/Controller/RequestHandlerControllerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/federatedfilesharing/tests/Controller') diff --git a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php index 1b02d8d0b7b..ff51a13b89e 100644 --- a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php +++ b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php @@ -36,11 +36,11 @@ use OCP\Federation\ICloudFederationProviderManager; use OCP\Federation\ICloudFederationShare; use OCP\Federation\ICloudIdManager; use OCP\IDBConnection; -use OCP\ILogger; use OCP\IRequest; use OCP\IUserManager; use OCP\Share; use OCP\Share\IShare; +use Psr\Log\LoggerInterface; /** * Class RequestHandlerTest @@ -77,7 +77,7 @@ class RequestHandlerControllerTest extends \Test\TestCase { /** @var ICloudIdManager|\PHPUnit\Framework\MockObject\MockObject */ private $cloudIdManager; - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */ private $logger; /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */ @@ -127,7 +127,7 @@ class RequestHandlerControllerTest extends \Test\TestCase { $this->cloudFederationShare = $this->createMock(ICloudFederationShare::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->requestHandler = new RequestHandlerController( 'federatedfilesharing', -- cgit v1.2.3