Commit Graph

255 Commits

Author SHA1 Message Date
Marcel Klehr 86fc932981 Don't use deprecated Util::writeLog 2018-11-05 14:49:59 +01:00
Marcel Klehr 651b525b50 Folders: Allow reordering children 2018-10-29 22:40:49 +01:00
Marcel Klehr 4473b6f5b8 Implement bookmark import for folders 2018-10-20 21:01:58 +02:00
Marcel Klehr d5892cc11c Implement folder API 2018-10-20 21:01:58 +02:00
Marcel Klehr a2a17a8fc5 Fix tests 2018-09-02 16:55:48 +02:00
Marcel Klehr 6c9c07c2ba Implement deleteAllBookmarks route 2018-07-28 15:16:49 +02:00
Marcel Klehr 0c53a764c1 routes & tests: Fix coding style 2018-07-28 14:42:13 +02:00
Marcel Klehr 83fbc4a705 Implement 'untagged' view 2018-07-16 20:47:18 +02:00
Nikos Chiotis 490efa3899 fix scrutinizer issues 2018-06-03 21:14:51 +03:00
Nikos Chiotis 1afb00e16b
Update settingscontroller_test.php 2018-06-03 19:42:35 +03:00
Nikos Chiotis b5101346c2 sorting: fixes 2018-06-02 06:34:44 +03:00
Nikos Chiotis 9552403bd3 sorting: fixes 2018-06-02 06:23:48 +03:00
Nikos Chiotis 13c4e7bb3a
SettingsController test 2018-06-02 02:31:11 +03:00
Marcel Klehr 3286963427 Fix tests 2018-04-27 14:18:44 +02:00
Arthur Schiwon b3a6f79d95 fix class check for master?
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-04-09 22:44:14 +02:00
Marcel Klehr 69f4771edb Fix tests for pgsql
cannot predict order of tag results on pgsql
2018-03-24 18:01:35 +01:00
Marcel Klehr f4c2230257 Remove faulty failing test
background: If the URL contains %ba it is inherently not the same as the same URL with %25ba
thus I think it doesn't make sense to test if they are treated the same
2018-03-12 19:11:35 +01:00
Marcel Klehr dad9410e7b Fix tests: www.9gag.com -> 9gag.com 2018-03-12 19:11:35 +01:00
Marcel Klehr c499c58218 Tests: Account for http->https redirects 2018-03-12 19:11:35 +01:00
Marcel Klehr ca7e60838b Fix tests 2018-03-12 19:11:35 +01:00
Marcel Klehr 6f43e82302 Encapsule LinkPreview lib in LinkExplorer service 2018-03-12 19:11:35 +01:00
Maxence Lange 487617e9bc and the tests 2018-01-27 19:16:34 -01:00
blizzz 3be4e33aa3
Merge pull request #408 from marcelklehr/feature/rest-read-single-bookmark
New REST endpoint: read single bookmark
2017-12-05 17:10:02 +01:00
Marcel Klehr d976f62c4d Add test for 404 2017-12-03 23:28:40 +01:00
Marcel Klehr 99e3a00d3b FindTags test: Address pgsql order glitch 2017-11-25 18:24:24 +01:00
Marcel Klehr f92a164898 Add real test for #411 2017-11-25 18:15:29 +01:00
Marcel Klehr d138b6c28b Fix test: Create otherUser 2017-11-25 17:45:22 +01:00
Marcel Klehr ac12fccaeb Add a test case for #411 2017-11-25 17:38:22 +01:00
Marcel Klehr 2b5cb7a068 Fix public tests: use the publiController 2017-11-19 16:48:08 +01:00
Marcel Klehr 16bf21af5b Fix tests 2017-11-19 16:32:12 +01:00
Marcel Klehr 28a01618b7 Fix parse errors in tests 2017-11-19 16:28:25 +01:00
Marcel Klehr c72643f8cb Add tests for READ single bookmark rest endpoint 2017-11-19 16:16:56 +01:00
blizzz 07591f9f0f fix: clickBookmark's DB query was not migrated (#390)
* fix: clickBookmark's DB query was not migrated
* decode and escape input url
* add ESCAPE for queries against sqlite before Nc 12
* fix sqlite check
2017-07-15 22:00:10 +02:00
blizzz d1736641be Merge pull request #368 from marcelklehr/fix/getBookmarks
Fix bookmarks filter
2017-07-14 23:58:09 +02:00
Marcel Klehr c7c60978b0 Tests: remove debug output 2017-07-14 23:07:10 +02:00
blizzz ab25dd2e52 Merge pull request #367 from marcelklehr/fix/findTags
Fix findTags: Use query param to inject tags
2017-06-25 13:19:12 +02:00
Marcel Klehr f97a908100 Fix findBookmarks: use having instead of multi-join hell 2017-06-21 02:42:40 +02:00
Marcel Klehr a8b0ea992f Tests: Extend getBookmarks test 2017-06-21 02:42:25 +02:00
Marcel Klehr cada4015b0 Tix findTags test: Filter with two tags 2017-06-08 10:56:54 +02:00
Marcel Klehr 1bbc003036 Fix findTags filter test
expected array was wrong
2017-05-29 00:29:15 +02:00
Marcel Klehr 29a127ecc4 Fix api#editBookmark: Check tags != null 2017-05-28 11:41:19 +02:00
Marcel Klehr 9b9218518a Add findTags filter test 2017-05-28 11:27:06 +02:00
Marcel Klehr d31e088aa7 Merge pull request #377 from nextcloud/fix/findBms-empty-tags
Fix findBookmarks: Return empty tags if none found
2017-05-28 11:23:19 +02:00
Arthur Schiwon b71e54b6fa
add unit test for this case 2017-05-27 21:20:39 +02:00
Marcel Klehr 769b756c3c Fix desparate movFix desparate 2017-05-27 10:02:45 +02:00
Marcel Klehr 15856b3f7c (desparately using var_dump) 2017-05-27 10:02:45 +02:00
Marcel Klehr 27e904bb4c Fix deleteTag test: Add missing tag 2017-05-27 10:02:45 +02:00
Marcel Klehr 2aec8f3df7 Fix deleteTag test: Fix assertion 2017-05-27 10:02:45 +02:00
Marcel Klehr 88f059f773 Add test for deleteTag 2017-05-27 10:02:45 +02:00
Marcel Klehr e5a276fddd Fix editBookmark test: Fix assertion 2017-05-16 18:24:15 +02:00
Marcel Klehr d9f0e1f399 Update editBookmark test: Add multiple tags 2017-05-16 11:54:11 +02:00
Marcel Klehr a398802871 Fix editBookmark test 2017-05-16 11:24:15 +02:00
blizzz 8d68ecbfab Merge pull request #338 from marcelklehr/consolidate/private-public-api
Consolidate private with preliminary public api
2017-05-10 21:09:02 +02:00
Marcel Klehr ccb4b84e15 Fix style issues and a missing method 2017-05-08 21:27:35 +02:00
Marcel Klehr 9ea86afae1 Fix findBookmarks: Include tagless bookmarks too 2017-04-17 00:37:21 +02:00
Marcel Klehr b77d1378dc Fix findBookmarks test 2017-04-17 00:37:21 +02:00
Marcel Klehr 060f351063 Fix editBookmark test, really 2017-04-17 00:37:21 +02:00
Marcel Klehr 20be279ca6 Fix editBookmark test 2017-04-17 00:37:21 +02:00
Marcel Klehr d1f8de04a9 Check return value of findUniqueBm 2017-04-17 00:37:21 +02:00
Marcel Klehr 995a796519 Extend editBookmark test: check other bms 2017-04-17 00:37:21 +02:00
Marcel Klehr f491ad9db9 Extend editBookmark test case 2017-04-17 00:37:21 +02:00
Marcel Klehr 6bf52023f4 Fix typo 2017-04-17 00:37:21 +02:00
Marcel Klehr 50e28f2b44 Extend findBookmarks test 2017-04-17 00:37:21 +02:00
Marcel Klehr 9ae10a1898 More copy-pasta cleanup 2017-02-20 00:22:54 +01:00
Marcel Klehr b7be4eb462 Fix copy-pasta remains 2017-02-20 00:03:22 +01:00
Marcel Klehr bd1c2a08eb Fix assert method call 2017-02-19 23:54:38 +01:00
Marcel Klehr 57a520160b Fix Syntax 2017-02-19 18:08:04 +01:00
Marcel Klehr 1f0f9c7dd5 Fix renameTag test on pgsql
Don't check order of returned tags explicitly
2017-02-19 01:05:12 +01:00
Marcel Klehr 3c7861005a Fix mind-o pricateCreate and publicCreate tests 2017-02-10 22:20:39 +01:00
Marcel Klehr 653a6574a0 Feature: Merge back in features of public querying 2017-02-10 21:31:10 +01:00
Marcel Klehr 11dc4d598a Fix tests: Inspect correct sub path of json 2017-02-10 20:10:12 +01:00
Marcel Klehr c1c88d8e9e Test sth out 2017-02-10 19:56:30 +01:00
Marcel Klehr e1f888af3e Fix tests for public access 2017-02-10 18:53:03 +01:00
Marcel Klehr 73b83b94f2 Fix tests: private edit and private create 2017-02-10 18:43:24 +01:00
Marcel Klehr dc015fffcf Fix tests: Create otherUser 2017-02-10 18:37:18 +01:00
Marcel Klehr db8331b491 First try at consolidating private and public api 2017-02-10 18:25:12 +01:00
Marcel Klehr 2ed2b6e125 Fix typo 2017-02-10 15:54:25 +01:00
Marcel Klehr 3c498c9b5e Test renameTag
see #305
2017-02-10 15:40:32 +01:00
Marcel Klehr 2ebc7d6621 Fix tests: Make sure testuser exists 2016-12-20 14:56:46 +01:00
Marcel Klehr e3401d9227 Add tests 2016-12-20 14:54:30 +01:00
Arthur Schiwon 9296454191
fix missed getDb call 2016-12-19 23:05:50 +01:00
Arthur Schiwon bfb20022d8
add Nextcloud 12 compatibility and PHP 7.1 tests 2016-12-19 22:58:37 +01:00
Arthur Schiwon c4e95abfba
fix naming 2016-12-07 13:00:43 +01:00
Arthur Schiwon fbd0b317b6
don't give up on a cURL 18 error 2016-12-04 17:08:35 +01:00
Arthur Schiwon e673125e36
add file exist check 2016-12-03 23:26:27 +01:00
Arthur Schiwon 8dfacff786
attempt to fix OC >= 9.1 tests, take 2 2016-12-03 23:19:57 +01:00
Arthur Schiwon 88c2591943
attempt to fix OC >= 9.1 tests 2016-12-03 22:58:53 +01:00
Arthur Schiwon 28f024a468
require TestCase for stable9 compatibility 2016-12-03 22:38:08 +01:00
Arthur Schiwon 2ff7446484
move loadApp from tests to bootstrap
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2016-12-03 20:43:25 +01:00
Arthur Schiwon 7f81f643fc
make tests backwards compatible
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2016-10-20 13:15:50 +02:00
Arthur Schiwon 17c95dddaa
switch test to Test/TestCase
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2016-10-20 12:22:31 +02:00
Arthur Schiwon 8844d8ca49
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2016-10-19 22:28:41 +02:00
Arthur Schiwon 3428c3638a
adjust unit test 2016-04-24 22:09:35 +02:00
Arthur Schiwon 3b3fd65598
Add test on adding bookmark with URL containing umlaut
Does not relate to this issue (different code path, not covered by tests
yet), but still it is a good addition.
2016-04-24 15:29:15 +02:00
Arthur Schiwon c97a23b39b fix unit test 2015-07-08 22:08:45 +02:00
Thomas Müller 1b4be5de3f No OC_Log 2015-07-04 16:11:17 +02:00
ganomi 0bcb107bd2 Merge pull request #109 from owncloud/FixAmazon
Fix handling of website encoding.
2014-12-27 08:03:00 +01:00
ganomi 548d0252ab Fix handling of website encoding.
Exemplary case was Amazon.de which does not have UTF-8 Encoding.
2014-12-26 21:33:25 +01:00
ganomi 46d5836da3 Fix public api when querying with no filter
add test for the case
2014-12-26 19:51:28 +01:00
ganomi ae81b9dcd2 This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features.
Dependency Injection for user and db is used througout the controllers
The Routing features a consistent rest api
The Routing provides some legacy routes, so that for exampe the Android Bookmarks App still works.

There is a publicly available api that provides access to bookmarks per user.
(This is usefull in connection with the WP Plugin https://github.com/mario-nolte/oc2wp-bookmarks)
2014-11-26 12:24:18 +01:00
Thomas Müller 01b977e6ae initial setup of qa tooling 2014-08-20 16:09:01 +02:00
Thomas Mueller 0b99ee2d05 drop SimpleTest compatibility 2013-01-24 16:50:51 +01:00
Bart Visscher 7631073c5d Add loadApp to test cases 2012-10-26 16:33:26 +02:00
Brice Maron 46b12ff8b2 Correct Some ClosingTag style 2012-10-12 21:50:55 +00:00
Brice Maron d2ea5725c2 First stubs of BM tests 2012-10-12 21:06:34 +00:00