We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa291e commit 12ccf64Copy full SHA for 12ccf64
tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
@@ -36,6 +36,7 @@
36
use OCP\AppFramework\Db\DoesNotExistException;
37
use OCP\AppFramework\Utility\ITimeFactory;
38
use OCP\IConfig;
39
+use OCP\IDBConnection;
40
use OCP\Security\ICrypto;
41
use PHPUnit\Framework\MockObject\MockObject;
42
use Psr\Log\LoggerInterface;
@@ -73,9 +74,6 @@ protected function setUp(): void {
73
74
['openssl', [], []],
75
]);
76
$this->db = $this->createMock(IDBConnection::class);
- $this->db->method('atomic')->willReturnCallback(function ($cb) {
77
- return $cb();
78
- });
79
$this->logger = $this->createMock(LoggerInterface::class);
80
$this->timeFactory = $this->createMock(ITimeFactory::class);
81
$this->time = 1313131;
0 commit comments