You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/apps/twofactor_backupcodes/tests/Unit/Event/CodesGeneratedTest.php

23 lines
530 B

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\TwoFactorBackupCodes\Tests\Unit\Event;
use OCA\TwoFactorBackupCodes\Event\CodesGenerated;
use OCP\IUser;
use Test\TestCase;
class CodesGeneratedTest extends TestCase {
public function testCodeGeneratedEvent(): void {
$user = $this->createMock(IUser::class);
$event = new CodesGenerated($user);
$this->assertSame($user, $event->getUser());
}
}