aboutsummaryrefslogtreecommitdiff
path: root/scripts/create-testuser.php
blob: 4fa168be70d16593f93a503654fd7b7b25c30137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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');
?>