diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-31 10:15:32 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-31 10:15:32 +0000 |
commit | 261ce997dae198afb35e3076fc4e694775b2ba29 (patch) | |
tree | d00682050cf48fdeda5bd3b409af060efbac7e81 /scripts | |
parent | 5188e3a704e1f1dd9cf7de2366ee633a2b1cdf7b (diff) | |
download | semanticscuttle-261ce997dae198afb35e3076fc4e694775b2ba29.tar.gz semanticscuttle-261ce997dae198afb35e3076fc4e694775b2ba29.tar.bz2 |
helper script to create a test user
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@483 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create-testuser.php | 12 |
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 |