summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--scripts/create-testuser.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/create-testuser.php b/scripts/create-testuser.php
new file mode 100644
index 0000000..4f23354
--- /dev/null
+++ b/scripts/create-testuser.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Simply create a test user in the database with "test" as password
+ */
+$_SERVER['HTTP_HOST'] = 'http://localhost/';
+define('UNIT_TEST_MODE', true);
+
+require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
+
+$us = SemanticScuttle_Service_Factory::get('User');
+$us->addUser('test', 'test', 'test@example.org');
+?> \ No newline at end of file
.str { color:#ff0000; } div#cgit table.blob .dstr { color:#818100; } div#cgit table.blob .slc { color:#838183; font-style:italic; } div#cgit table.blob .com { color:#838183; font-style:italic; } div#cgit table.blob .dir { color:#008200; } div#cgit table.blob .sym { color:#000000; } div#cgit table.blob .kwa { color:#000000; font-weight:bold; } div#cgit table.blob .kwb { color:#830000; } div#cgit table.blob .kwc { color:#000000; font-weight:bold; } div#cgit table.blob .kwd { color:#010181; }
summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/default/about.tpl.php
Subprocess cgit-pygments-wrapper exited abnormally