diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-10-26 12:50:08 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-11-09 16:37:34 +0100 |
commit | 2a684f674164640d917a4fd1b3631b6ed3b36eb3 (patch) | |
tree | f9fef72a84099bc0868d205b0e9453c13896eef1 /tests | |
parent | dce83459d581b2517d7078d98c58d06babb1ceba (diff) | |
download | nextcloud-server-2a684f674164640d917a4fd1b3631b6ed3b36eb3.tar.gz nextcloud-server-2a684f674164640d917a4fd1b3631b6ed3b36eb3.zip |
Fix some phpunit test warnings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php index ce739a74bb8..197cb46a592 100644 --- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php +++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php @@ -36,6 +36,7 @@ use OC\Authentication\Token\PublicKeyTokenProvider; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IConfig; +use OCP\IDBConnection; use OCP\Security\ICrypto; use PHPUnit\Framework\MockObject\MockObject; use Psr\Log\LoggerInterface; @@ -73,9 +74,6 @@ class PublicKeyTokenProviderTest extends TestCase { ['openssl', [], []], ]); $this->db = $this->createMock(IDBConnection::class); - $this->db->method('atomic')->willReturnCallback(function ($cb) { - return $cb(); - }); $this->logger = $this->createMock(LoggerInterface::class); $this->timeFactory = $this->createMock(ITimeFactory::class); $this->time = 1313131; |