aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/bookmark
Commit message (Collapse)AuthorAgeFilesLines
* New plugin hook: ability to add custom filters to Shaarli search engineArthurHoaro2021-02-043-82/+157
| | | | | | | A new plugin hook has been added: hook_test_filter_search_entry This hook allows to filter out bookmark with custom plugin code when a search is performed. Related to #143
* Handle pagination through BookmarkServiceArthurHoaro2021-01-202-4/+129
| | | | | | | Handle all search results through SearchResult object. This is a required step toward implementing a BookmarkService based on SQL database. Related to #953
* Fix metadata extract regex (2)ArthurHoaro2020-12-171-0/+10
| | | | | | Reference: https://stackoverflow.com/questions/8055727/negating-a-backreference-in-regular-expressions Fixes #1656
* Merge pull request #1621 from ArthurHoaro/feature/tag-separatorsArthurHoaro2020-11-083-10/+141
|\
| * Feature: support any tag separatorArthurHoaro2020-11-053-10/+141
| | | | | | | | | | | | | | | | So it allows to have multiple words tags. Breaking change: commas ',' are no longer a default separator. Fixes #594
* | Fix an issue truncating extracted metadata contentArthurHoaro2020-11-081-0/+30
|/ | | | Previous regex forced the selection to stop at either the first single or double quote found, regardless of the opening quote. Using '\1', we're sure to wait for the proper quote before stopping the capture.
* Raise 404 error instead of 500 if permalink access is deniedArthurHoaro2020-10-281-2/+2
|
* Feature: add weekly and monthly view/RSS feed for daily pageArthurHoaro2020-10-271-34/+90
| | | | | | | | | - Heavy refactoring of DailyController - Add a banner like in tag cloud to display monthly and weekly links - Translations: t() now supports variables with optional first letter uppercase Fixes #160
* Feature: Share private bookmarks using a URL containing a private keyArthurHoaro2020-10-271-0/+31
| | | | | | | | | | - Add a share link next to « Permalink » in linklist (using share icon from fork awesome) - This link generates a private key associated to the bookmark - Accessing the bookmark while logged out with the proper key will display it Fixes #475
* Asynchronous retrieval of bookmark's thumbnailsArthurHoaro2020-10-201-0/+44
| | | | | | | | | This feature is based general.enable_async_metadata setting and works with existing metadata.js file. The script is compatible with any template: - the thumbnail div bloc must have attribute - the bookmark bloc must have attribute with the bookmark ID as value Fixes #1564
* Merge pull request #1567 from ArthurHoaro/feature/async-title-retrievalArthurHoaro2020-10-201-115/+108
|\
| * Improve metadata retrieval (performances and accuracy)ArthurHoaro2020-10-151-115/+108
| | | | | | | | | | - Use dedicated function to download headers to avoid apply multiple regexps on headers - Also try to extract title from meta tags
* | add search highlight unit testsArthurHoaro2020-10-162-1/+55
| |
* | Strict types: fix an issue in daily where the date could be an intArthurHoaro2020-10-161-2/+2
|/
* Add strict types for bookmarks managementArthurHoaro2020-10-133-95/+0
| | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* Add mutex on datastore I/O operationsArthurHoaro2020-10-133-24/+37
| | | | | | To make sure that there is no concurrent operation on the datastore file. Fixes #1132
* Merge pull request #1540 from ArthurHoaro/fix/metadata-regexesArthurHoaro2020-10-131-0/+89
|\ | | | | Improve regex to extract HTML metadata (title, description, etc.)
| * Improve regex to extract HTML metadata (title, description, etc.)ArthurHoaro2020-09-031-0/+89
| | | | | | | | | | | | Also added a bunch of tests to cover more use cases. Fixes #1375
* | Merge pull request #1575 from ArthurHoaro/feature/php8ArthurHoaro2020-10-036-29/+25
|\ \
| * | Fix missing @expectedException convertionArthurHoaro2020-09-292-4/+3
| | |
| * | Compatibility with PHPUnit 9ArthurHoaro2020-09-296-25/+22
| | |
* | | Merge pull request #1569 from ArthurHoaro/fix/bad-encodingArthurHoaro2020-09-301-0/+13
|\ \ \ | |/ / |/| | Fix warning if the encoding retrieved from external headers is invalid
| * | Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-0/+13
| | | | | | | | | | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* | | Convert legacy PHPUnit @expected* to new ->expect*ArthurHoaro2020-09-273-58/+60
| | | | | | | | | | | | Converted automatically using https://github.com/ArthurHoaro/convert-legacy-phpunit-expect
* | | Comply with PHPUnit V8: setup/teardown functions must return voidArthurHoaro2020-09-261-1/+1
|/ /
* | Merge pull request #1552 from ArthurHoaro/feature/better-initializerArthurHoaro2020-09-122-29/+59
|\ \
| * | Improve default bookmarks after installArthurHoaro2020-09-102-29/+59
| |/ | | | | | | | | | | | | Used @nodiscc suggestion in #1148 (slightly edited). It provides a description of what Shaarli does, Markdown rendering demo, and a thumbnail link. Fixes #1148
* / Fix visibility issue on daily pageArthurHoaro2020-09-062-2/+42
|/ | | | | | This filter (links by day) didn't apply any visibility parameter. Fixes #1543
* Remove anonymous permission and initialize bookmarks on loginArthurHoaro2020-08-011-5/+9
|
* Fix basePath in unit tests reference DBArthurHoaro2020-07-281-2/+2
|
* Better support for notes permalinkArthurHoaro2020-07-282-4/+4
|
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-231-10/+10
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Handle tag filtering in the Bookmark serviceArthurHoaro2020-07-231-5/+0
|
* Slim router: handle add tag routeArthurHoaro2020-07-231-3/+1
|
* Fix an issue with private tags and fix nomarkdown tagArthurHoaro2020-01-181-0/+41
| | | | | | | | The new bookmark service wasn't handling private tags properly. nomarkdown tag is now shown only for logged in user in bookmarks, and hidden for everyone in tag clouds/lists. Fixes #726
* Add and update unit test for the new system (Bookmark + Service)ArthurHoaro2020-01-187-730/+1861
| | | | See #1307
* Fix UT: LinkDBTest - make each tests independantArthurHoaro2019-08-101-13/+12
| | | | | Otherwise the datastore is empty in the last test, making it inconsistent due to dates issues.
* Make sure that bookmark sort is consistent, even with equal timestampsArthurHoaro2019-08-071-0/+35
| | | | Fixes #1348
* Automatically retrieve description for new bookmarksArthurHoaro2019-07-061-11/+193
| | | | | | | | | | | | | | | If the option is enabled, it will try to find a meta tag containing the page description and keywords, just like we do for the page title. It will either look for regular meta tag or OpenGraph ones. The option is disabled by default. Note that keywords meta tags is mostly not used. In `configure` template, the variable associated with this setting is `$retrieve_description`. Fixes #1302
* Merge pull request #1271 from ArthurHoaro/hotfix/thumb-note-retrieveArthurHoaro2019-03-021-0/+20
|\ | | | | Do not try to retrieve thumbnails for internal link
| * Do not try to retrieve thumbnails for internal linkArthurHoaro2019-02-241-0/+20
| | | | | | | | Also adds a helper function to determine if a link is a note and apply it across multiple files.
* | Remove the redirector settingArthurHoaro2019-02-092-66/+7
|/ | | | Fixes #1239
* Optimize and cleanup importsVirtualTam2019-01-131-1/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: move LinkUtils along \Shaarli\Bookmark classesVirtualTam2019-01-121-0/+333
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkFilterVirtualTam2019-01-122-3/+510
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+653
Signed-off-by: VirtualTam <virtualtam@flibidi.net>