summaryrefslogtreecommitdiff
path: root/modules/openid/tests/openid_test.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openid/tests/openid_test.install')
-rw-r--r--modules/openid/tests/openid_test.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/openid/tests/openid_test.install b/modules/openid/tests/openid_test.install
new file mode 100644
index 000000000..4f1ba3540
--- /dev/null
+++ b/modules/openid/tests/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)));
+}