2009-11-02 09:36:44 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Simply create some test bookmarks
|
|
|
|
*/
|
2010-01-19 22:58:19 +00:00
|
|
|
require_once dirname(__FILE__) . '/../src/SemanticScuttle/header-standalone.php';
|
2009-11-02 09:36:44 +00:00
|
|
|
|
|
|
|
$us = SemanticScuttle_Service_Factory::get('User');
|
|
|
|
$uid = $us->addUser('dummy', 'dummy', 'dummy@example.org');
|
|
|
|
|
|
|
|
$bs = SemanticScuttle_Service_Factory::get('Bookmark');
|
|
|
|
for ($nA = 0; $nA < 10; $nA++) {
|
|
|
|
$rand = rand();
|
|
|
|
$bid = $bs->addBookmark(
|
|
|
|
'http://example.org/' . $rand,
|
|
|
|
'unittest bookmark #' . $rand,
|
|
|
|
'description',
|
|
|
|
null,
|
|
|
|
0,
|
|
|
|
array('unittest'),
|
2009-11-23 19:11:33 +00:00
|
|
|
null, null, false, false,
|
2009-11-02 09:36:44 +00:00
|
|
|
$uid
|
|
|
|
);
|
|
|
|
}
|
|
|
|
?>
|