2009-10-31 11:15:32 +01:00
|
|
|
<?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');
|
2009-11-26 09:18:11 +01:00
|
|
|
$us->addUser('admin', 'admin', 'admin@example.org');
|
2009-10-31 11:15:32 +01:00
|
|
|
?>
|