]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
helper script to create a test user
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 31 Oct 2009 10:15:32 +0000 (10:15 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 31 Oct 2009 10:15:32 +0000 (10:15 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@483 b3834d28-1941-0410-a4f8-b48e95affb8f

scripts/create-testuser.php [new file with mode: 0644]

diff --git a/scripts/create-testuser.php b/scripts/create-testuser.php
new file mode 100644 (file)
index 0000000..4f23354
--- /dev/null
@@ -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