RemoteWipeFinishedTest.php 537 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace Test\Authentication\Events;
  8. use OC\Authentication\Events\RemoteWipeFinished;
  9. use OC\Authentication\Token\IToken;
  10. use Test\TestCase;
  11. class RemoteWipeFinishedTest extends TestCase {
  12. public function testGetToken(): void {
  13. $token = $this->createMock(IToken::class);
  14. $event = new RemoteWipeFinished($token);
  15. $this->assertSame($token, $event->getToken());
  16. }
  17. }