aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests/Unit/Event/CodesGeneratedTest.php
blob: 3f619e387e9880c24bd72f329d3f474344df0676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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());
	}
}