diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2025-06-13 09:10:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-13 09:10:09 +0200 |
commit | 7be047a5c08d4401899d38c9a7d7ebdb6d8e78b2 (patch) | |
tree | 70348117aaae719bd278f4476afe6563ee16aa14 /tests/lib/Accounts | |
parent | 1f0086ff6b49c31facd7cb13921725142b47409f (diff) | |
parent | 3561937816578a699008c010829142a01580e7bf (diff) | |
download | nextcloud-server-master.tar.gz nextcloud-server-master.zip |
Diffstat (limited to 'tests/lib/Accounts')
-rw-r--r-- | tests/lib/Accounts/AccountManagerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Accounts/AccountManagerTest.php b/tests/lib/Accounts/AccountManagerTest.php index 05c7efd08fb..6e2f30a2c26 100644 --- a/tests/lib/Accounts/AccountManagerTest.php +++ b/tests/lib/Accounts/AccountManagerTest.php @@ -29,6 +29,7 @@ use OCP\L10N\IFactory; use OCP\Mail\IMailer; use OCP\Security\ICrypto; use OCP\Security\VerificationToken\IVerificationToken; +use OCP\Server; use PHPUnit\Framework\MockObject\MockObject; use Psr\Log\LoggerInterface; use Test\TestCase; @@ -61,7 +62,7 @@ class AccountManagerTest extends TestCase { protected function setUp(): void { parent::setUp(); - $this->connection = \OCP\Server::get(IDBConnection::class); + $this->connection = Server::get(IDBConnection::class); $this->phoneNumberUtil = new PhoneNumberUtil(); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); @@ -488,7 +489,7 @@ class AccountManagerTest extends TestCase { } else { $this->eventDispatcher->expects($this->once())->method('dispatchTyped') ->willReturnCallback( - function ($event) use ($user, $newData) { + function ($event) use ($user, $newData): void { $this->assertInstanceOf(UserUpdatedEvent::class, $event); $this->assertSame($user, $event->getUser()); $this->assertSame($newData, $event->getData()); |