2020-04-09 05:50:14 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2019-05-28 11:56:01 -04:00
|
|
|
|
|
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-05-28 11:56:01 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Test\Authentication\Events;
|
|
|
|
|
|
|
|
|
|
use OC\Authentication\Events\RemoteWipeStarted;
|
|
|
|
|
use OC\Authentication\Token\IToken;
|
|
|
|
|
use Test\TestCase;
|
|
|
|
|
|
|
|
|
|
class RemoteWipeStartedTest extends TestCase {
|
2024-09-15 16:32:31 -04:00
|
|
|
public function testGetToken(): void {
|
2019-05-28 11:56:01 -04:00
|
|
|
$token = $this->createMock(IToken::class);
|
|
|
|
|
$event = new RemoteWipeStarted($token);
|
|
|
|
|
|
|
|
|
|
$this->assertSame($token, $event->getToken());
|
|
|
|
|
}
|
|
|
|
|
}
|