diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-09-19 16:06:40 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-09-21 11:57:21 +0200 |
commit | 0a9371f99f05786068d6f6a72b9a717ec24690a8 (patch) | |
tree | 90ae93c3e608e2bf90a1ed0a54defb053d3e86ef /apps/federation/tests | |
parent | b6761fbc967bd165279ca20af8c05cae045267d4 (diff) | |
download | nextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.tar.gz nextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.zip |
Migrate applications away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/federation/tests')
-rw-r--r-- | apps/federation/tests/Controller/OCSAuthAPIControllerTest.php | 3 | ||||
-rw-r--r-- | apps/federation/tests/TrustedServersTest.php | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php index 02e82880f9b..74d09c6d363 100644 --- a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php +++ b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php @@ -38,7 +38,6 @@ use Psr\Log\LoggerInterface; use Test\TestCase; class OCSAuthAPIControllerTest extends TestCase { - /** @var \PHPUnit\Framework\MockObject\MockObject|IRequest */ private $request; @@ -54,7 +53,7 @@ class OCSAuthAPIControllerTest extends TestCase { /** @var \PHPUnit\Framework\MockObject\MockObject|DbHandler */ private $dbHandler; - /** @var \PHPUnit\Framework\MockObject\MockObject|ILogger */ + /** @var \PHPUnit\Framework\MockObject\MockObject|LoggerInterface */ private $logger; /** @var \PHPUnit\Framework\MockObject\MockObject|ITimeFactory */ diff --git a/apps/federation/tests/TrustedServersTest.php b/apps/federation/tests/TrustedServersTest.php index 49ee021c028..5b4e303b266 100644 --- a/apps/federation/tests/TrustedServersTest.php +++ b/apps/federation/tests/TrustedServersTest.php @@ -41,7 +41,6 @@ use Test\TestCase; use Psr\Log\LoggerInterface; class TrustedServersTest extends TestCase { - /** @var \PHPUnit\Framework\MockObject\MockObject | TrustedServers */ private $trustedServers; @@ -57,7 +56,7 @@ class TrustedServersTest extends TestCase { /** @var \PHPUnit\Framework\MockObject\MockObject | IResponse */ private $response; - /** @var \PHPUnit\Framework\MockObject\MockObject | ILogger */ + /** @var \PHPUnit\Framework\MockObject\MockObject | LoggerInterface */ private $logger; /** @var \PHPUnit\Framework\MockObject\MockObject | IJobList */ @@ -132,7 +131,7 @@ class TrustedServersTest extends TestCase { $this->dbHandler->expects($this->once())->method('addToken')->with('https://url', 'token'); $this->jobList->expects($this->once())->method('add') ->with('OCA\Federation\BackgroundJob\RequestSharedSecret', - ['url' => 'https://url', 'token' => 'token', 'created' => 1234567]); + ['url' => 'https://url', 'token' => 'token', 'created' => 1234567]); $this->assertSame( $trustedServers->addServer('url'), |