Commit graph

81 commits

Author SHA1 Message Date
cweiske
858b188f87 add missing piece of faulty merge
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@683 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:44:06 +00:00
cweiske
17374001b8 add SemanticScuttle_Service_Bookmark::bookmarksExist() method to check for existance of multiple bookmarks at once for future sql optimization
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@680 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:39:03 +00:00
cweiske
3e9c2cd0a5 add new method for better sql performance: Bookmark2Tag::getTagsForBookmarks()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@667 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:14:39 +00:00
cweiske
0685081d46 make tests better
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@665 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:11:26 +00:00
cweiske
512e3a6811 add bookmark2tagtest to alltests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@664 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:10:08 +00:00
cweiske
97c3d1ed63 add test for Bookmark2Tag::getTagsForBookmark()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@663 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:08:52 +00:00
cweiske
46b96044fb test getBookmarks() with tag loading functionality
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@662 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:07:37 +00:00
cweiske
6b7217daf2 make countOthers() accept an array of addresses
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@659 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-20 11:03:20 +00:00
cweiske
2f13a1c819 test complex combination of watches, publics and private bookmarks with countOthers()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@657 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-16 21:58:00 +00:00
cweiske
57d4892eb3 allow setting of status during addBookmark in tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@656 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-16 21:57:03 +00:00
cweiske
157adfd7eb multiple tests for SemanticScuttle_Service_Bookmark::countOthers()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@655 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-16 21:55:50 +00:00
cweiske
e5dab0a740 allow adding of certain addresses
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@654 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-16 21:54:31 +00:00
cweiske
3b656954e0 tell people that debugmode and mysql4 will break some tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@638 b3834d28-1941-0410-a4f8-b48e95affb8f
2010-02-07 16:50:17 +00:00
cweiske
82b17be346 part of request #2830224: prepare API for short url service
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@570 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-23 19:11:33 +00:00
cweiske
fdaee8f05d test email validation
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@567 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-20 17:40:20 +00:00
cweiske
cd925c3067 add base test files to phpunit blacklist
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@566 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-20 17:39:17 +00:00
cweiske
1256489fa7 test deleteBookmarksForUser
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@565 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-20 17:38:15 +00:00
cweiske
258fc8edc5 test bookmark updating
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@564 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-20 07:33:48 +00:00
cweiske
7431f632a4 test normalizing an address
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@563 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-20 07:33:22 +00:00
cweiske
7a9bf6772d test bookmarkExists() in all variations
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@561 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-19 19:44:04 +00:00
cweiske
7a495ede9d fully test editAllowed()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@560 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-19 19:24:34 +00:00
cweiske
9710ede432 fix notice when passing an invalid array to editAllowed()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@559 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-19 19:23:26 +00:00
cweiske
563df90c75 fix notice when passing an invalid array to editAllowed()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@558 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-19 19:22:21 +00:00
cweiske
c93455201a test getBookmark() a bit more, and test "all" parameter with countBookmarks
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@557 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-19 19:20:48 +00:00
cweiske
3edc7cf8bb update unit test instructions
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@534 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-10 17:51:31 +00:00
cweiske
b80df612d5 add new "votes" field in bookmarks database with the total sum of votes
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@509 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-03 09:14:30 +00:00
cweiske
73212d6e3f allow vote changes
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@495 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-02 09:36:23 +00:00
cweiske
1b6f516bbb test vote() when voting is deactivated
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-02 09:35:58 +00:00
cweiske
d05aebe54e allow changing of votes
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@493 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-02 09:35:38 +00:00
cweiske
b569921136 enable voting in voting tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@492 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-11-02 09:35:12 +00:00
cweiske
ac4e66c360 enable voting when testing voting, test countBookmarks()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@485 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-31 10:19:38 +00:00
cweiske
d1c4ef5043 test getObjectUsers() and fix a bug found by the tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@484 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-31 10:17:55 +00:00
cweiske
39db481506 unification test was unstable, too
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@464 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:33:36 +00:00
cweiske
63f82a4101 test was unstable and did not work with empty users table
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@463 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:32:15 +00:00
cweiske
2444e1257f fix unfreed sql result and add deleteAll() for users
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@457 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:25:27 +00:00
cweiske
ee21c9e47a add usertest to alltests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@451 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:18:38 +00:00
cweiske
b6880a1011 add usertest and check if setting a new user id also changes the user array
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@450 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:17:40 +00:00
cweiske
80464e45e8 test previously fixed bug: voting was updated for all bookmarks, not only the current one
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@449 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:16:37 +00:00
cweiske
bb5205053e implement rewriteVotings() and unittest the method
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@448 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:15:14 +00:00
cweiske
03bc498eff test that voting for other bookmarks does not change when voting for one bookmark
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@447 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-28 22:13:57 +00:00
cweiske
3f340acd2b add eric and ben as authors
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@429 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-26 06:39:59 +00:00
cweiske
1a4a027226 rename config.inc.php to config.php throughout the code
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@428 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-26 06:39:23 +00:00
cweiske
8d16356f75 remove unreachable code
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@426 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 20:09:28 +00:00
cweiske
edfefe3eeb fix tagtest
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@422 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 20:04:16 +00:00
cweiske
6c7dc7a20b fix one tag2tag test and make the other one report the real error
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@420 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 19:37:04 +00:00
cweiske
1bffdc3696 tab 2 spaces in test files
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@419 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 19:35:48 +00:00
cweiske
f0ec32d89b fix testRename() tag2tag test
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@418 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 19:34:10 +00:00
cweiske
09fffebffe test if deleting bookmarks works. to do this, we need a new testbase method to create users, plus we need to return the uid when creating a new user. registration process needs to be adopted to that.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@417 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 19:32:48 +00:00
cweiske
c4ce5438a8 make bookmark tests work again
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@415 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 19:28:23 +00:00
cweiske
05defe72d8 introduce testbase class and make all tests runnable standalone
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@410 b3834d28-1941-0410-a4f8-b48e95affb8f
2009-10-25 15:31:31 +00:00