summaryrefslogtreecommitdiff
path: root/modules/openid/openid_test.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-29 07:29:59 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-29 07:29:59 +0000
commit1ed25923a356008fd0148de5d41ee3623d4c8f3e (patch)
tree7409c8852f2f86cd73b364de1b8b8c9dd5e3ce7f /modules/openid/openid_test.install
parent2e709fe3cddb9c17ce8ac3642d78f9f0e1698a02 (diff)
downloadbrdo-1ed25923a356008fd0148de5d41ee3623d4c8f3e.tar.gz
brdo-1ed25923a356008fd0148de5d41ee3623d4c8f3e.tar.bz2
- Patch #251245 by c960657: added tests for the OpenID module. The test module implements a dummy OpenID provider/server. Most impressive patch of the month.
Diffstat (limited to 'modules/openid/openid_test.install')
-rw-r--r--modules/openid/openid_test.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/openid/openid_test.install b/modules/openid/openid_test.install
new file mode 100644
index 000000000..4f1ba3540
--- /dev/null
+++ b/modules/openid/openid_test.install
@@ -0,0 +1,13 @@
+<?php
+// $Id$
+
+/**
+ * Implementation of hook_install().
+ */
+function openid_test_install() {
+ module_load_include('inc', 'openid');
+ // Generate a MAC key (Message Authentication Code) used for signing messages.
+ // The variable is base64-encoded, because variables cannot contain non-UTF-8
+ // data.
+ variable_set('openid_test_mac_key', base64_encode(_openid_get_bytes(20)));
+}