nextcloud/tests/lib/Security/IdentityProof/KeyTest.php
Ferdinand Thiessen e5b1799079
chore: add missing Override attribute to test files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:28 +02:00

33 lines
648 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace Test\Security\IdentityProof;
use OC\Security\IdentityProof\Key;
use Test\TestCase;
class KeyTest extends TestCase {
/** @var Key */
private $key;
#[\Override]
protected function setUp(): void {
parent::setUp();
$this->key = new Key('public', 'private');
}
public function testGetPrivate(): void {
$this->assertSame('private', $this->key->getPrivate());
}
public function testGetPublic(): void {
$this->assertSame('public', $this->key->getPublic());
}
}