diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-09 22:42:47 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-10 10:50:38 +0300 |
commit | f421fd25ba8a302ce394c35de287cb24c9f61202 (patch) | |
tree | 8b5e9afd530d76930e54ed7fe4b210043c554033 /apps/federatedfilesharing/tests | |
parent | 2f70397b03ce422fdb3b6fedb1a2b8409166650e (diff) |
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r-- | apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
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', |