aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Security/IdentityProof/KeyTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Security/IdentityProof/KeyTest.php')
-rw-r--r--tests/lib/Security/IdentityProof/KeyTest.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/lib/Security/IdentityProof/KeyTest.php b/tests/lib/Security/IdentityProof/KeyTest.php
new file mode 100644
index 00000000000..572bfbea619
--- /dev/null
+++ b/tests/lib/Security/IdentityProof/KeyTest.php
@@ -0,0 +1,32 @@
+<?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;
+
+ 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());
+ }
+}