summaryrefslogtreecommitdiff
path: root/_test/tests/inc/auth_encryption.test.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-08-01 23:06:36 +0200
committerKlap-in <klapinklapin@gmail.com>2013-08-01 23:06:36 +0200
commitde489e8bb4161522864aca1d308b9910387ae4bb (patch)
tree697a6ca1a6a3341598a6272dca6e5cf0ee4cd105 /_test/tests/inc/auth_encryption.test.php
parentcc036f74ff14c387f24d72f5a52f2f158208846e (diff)
parent4fb6e51447e840624b59742bec61641d606f5006 (diff)
downloadrpg-de489e8bb4161522864aca1d308b9910387ae4bb.tar.gz
rpg-de489e8bb4161522864aca1d308b9910387ae4bb.tar.bz2
Merge remote-tracking branch 'origin/master' into fetchimagetokexternal
Diffstat (limited to '_test/tests/inc/auth_encryption.test.php')
-rw-r--r--_test/tests/inc/auth_encryption.test.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/_test/tests/inc/auth_encryption.test.php b/_test/tests/inc/auth_encryption.test.php
new file mode 100644
index 000000000..041eba00e
--- /dev/null
+++ b/_test/tests/inc/auth_encryption.test.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * Tests the auth_decrypt and auth_encrypt-functions
+ */
+class auth_encryption_test extends DokuWikiTest {
+ function testDeEncrypt() {
+ $data = "OnA28asdfäakgß*+!\"+*";
+ $secret = "oeaf1öasdöflk§";
+ $this->assertEquals($data, auth_decrypt(auth_encrypt($data, $secret), $secret));
+ }
+}