From 77f21adb83f22d16afc654a89a8ef9a0b000fdfb Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:36:44 +0000 Subject: [PATCH] add bookmark creation test script git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@496 b3834d28-1941-0410-a4f8-b48e95affb8f --- scripts/create-testbookmarks.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scripts/create-testbookmarks.php diff --git a/scripts/create-testbookmarks.php b/scripts/create-testbookmarks.php new file mode 100644 index 0000000..b0d2756 --- /dev/null +++ b/scripts/create-testbookmarks.php @@ -0,0 +1,27 @@ +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'), + null, false, false, + $uid + ); +} +?> \ No newline at end of file