aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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