SemanticScuttle/scripts/create-testuser.php
2009-11-26 08:18:11 +00:00

13 lines
No EOL
390 B
PHP

<?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');
$us->addUser('admin', 'admin', 'admin@example.org');
?>