helper script to create a test user
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@483 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
5188e3a704
commit
261ce997da
12
scripts/create-testuser.php
Normal file
12
scripts/create-testuser.php
Normal file
@ -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');
|
||||
?>
|
Loading…
Reference in New Issue
Block a user