File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/lib/Authentication/Token Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3636use OCP \AppFramework \Db \DoesNotExistException ;
3737use OCP \AppFramework \Utility \ITimeFactory ;
3838use OCP \IConfig ;
39+ use OCP \IDBConnection ;
3940use OCP \Security \ICrypto ;
4041use PHPUnit \Framework \MockObject \MockObject ;
4142use Psr \Log \LoggerInterface ;
@@ -50,7 +51,7 @@ class PublicKeyTokenProviderTest extends TestCase {
5051 private $ crypto ;
5152 /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
5253 private $ config ;
53- /** @var IDBConnection|IDBConnection| MockObject */
54+ /** @var IDBConnection|MockObject */
5455 private IDBConnection $ db ;
5556 /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
5657 private $ logger ;
@@ -73,9 +74,6 @@ protected function setUp(): void {
7374 ['openssl ' , [], []],
7475 ]);
7576 $ this ->db = $ this ->createMock (IDBConnection::class);
76- $ this ->db ->method ('atomic ' )->willReturnCallback (function ($ cb ) {
77- return $ cb ();
78- });
7977 $ this ->logger = $ this ->createMock (LoggerInterface::class);
8078 $ this ->timeFactory = $ this ->createMock (ITimeFactory::class);
8179 $ this ->time = 1313131 ;
You can’t perform that action at this time.
0 commit comments