RemoteWipeStartedTest.php 528 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\RemoteWipeStarted;
  9. use OC\Authentication\Token\IToken;
  10. use Test\TestCase;
  11. class RemoteWipeStartedTest extends TestCase {
  12. public function testGetToken() {
  13. $token = $this->createMock(IToken::class);
  14. $event = new RemoteWipeStarted($token);
  15. $this->assertSame($token, $event->getToken());
  16. }
  17. }