aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Run Unit Tests against PHP 7.4ArthurHoaro2020-01-176-8/+18
| | | | | | | | Bump PHPUnit version and fix unit test - Globals are handled differently and are persistent through tests - Tests without assertions are marked as risky: some of them are just meant to check that no error is raised.
* Markdown plugin: fix RSS feed direct link reverseArthurHoaro2019-08-151-0/+10
| | | | The plugin was only reversing permalinks and failed with setting rss_permalinks set to false
* 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
* Default colors plugin - Add unit testsArthurHoaro2019-07-201-0/+195
|
* 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 #1273 from ArthurHoaro/feature/ban-managerArthurHoaro2019-05-252-97/+400
|\ | | | | Rewrite IP ban management
| * Rewrite IP ban managementArthurHoaro2019-02-092-97/+400
| | | | | | | | | | | | | | This adds a dedicated manager class to handle all ban interactions, which is instantiated and handled by LoginManager. IPs are now stored in the same format as the datastore, through FileUtils. Fixes #1032 #587
* | 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-094-71/+23
|/ | | | Fixes #1239
* Merge pull request #1182 from ArthurHoaro/feature/session-protection-stay-loginArthurHoaro2019-02-091-0/+14
|\ | | | | Do not check the IP address with session protection disabled
| * Do not check the IP address with session protection disabledArthurHoaro2018-07-171-0/+14
| | | | | | | | | | | | This allows the user to stay logged in if his IP changes. Fixes #1106
* | Optimize and cleanup importsVirtualTam2019-01-1327-84/+86
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | API: update test regexes to comply with PCRE2VirtualTam2019-01-131-2/+2
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: add plugin tests to \Shaarli\Plugin\[...]VirtualTam2019-01-129-15/+22
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Plugin\PluginManagerVirtualTam2019-01-129-15/+14
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Netscape\NetscapeBookmarkUtilsVirtualTam2019-01-129-7/+8
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\RouterVirtualTam2019-01-125-7/+9
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\ApplicationUtilsVirtualTam2019-01-122-23/+23
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\UpdaterVirtualTam2019-01-123-16/+24
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: move LinkUtils along \Shaarli\Bookmark classesVirtualTam2019-01-123-115/+122
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Bookmark\LinkFilterVirtualTam2019-01-122-12/+17
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-1220-38/+55
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\FileUtilsVirtualTam2019-01-123-4/+4
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Render\{PageBuilder,ThemeUtils}VirtualTam2019-01-121-1/+1
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: move HTTP utilities along \Shaarli\Http\ classesVirtualTam2019-01-1212-29/+50
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Http\UrlVirtualTam2019-01-121-11/+12
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Http\Base64UrlVirtualTam2019-01-121-1/+1
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Feed\{Cache,CachedPage,FeedBuilder}VirtualTam2019-01-124-22/+25
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\Exceptions\IOExceptionVirtualTam2019-01-123-6/+10
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | namespacing: \Shaarli\HistoryVirtualTam2019-01-129-32/+38
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | lint: fix line-length warningsVirtualTam2018-12-025-19/+56
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | lint: apply phpcbf to tests/VirtualTam2018-12-0226-43/+38
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Merge pull request #1205 from ArthurHoaro/feature/opengraphArthurHoaro2018-10-061-0/+2
|\ \ | | | | | | Add OpenGraph meta tags on permalink page
| * | Add OpenGraph meta tags on permalink pageArthurHoaro2018-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes: - og:title - og:type -> article - og:image -> if there is a thumbnail - og:url -> permalink - og:description -> first 300 chars of raw description - article:published_time - article:modified_time - article:tag -> one OG meta tag for each shaare tag Fixes #258
* | | Merge pull request #1212 from ArthurHoaro/hotfix/hashtag-md-escapeArthurHoaro2018-10-065-6/+38
|\ \ \ | | | | | | | | Fix hashtags with markdown escape enabled
| * | | Fix hashtags with markdown escape enabledArthurHoaro2018-08-145-6/+38
| |/ / | | | | | | | | | | | | | | | They're now transformed to markdown syntax links before processing them through Parsedown. Fixes #1210
* | | Add a button to set links as stickyArthurHoaro2018-10-066-26/+133
| | | | | | | | | | | | | | | | | | Meaning that they always appear on top of all links Fixes #186
* | | Isso plugin: add an icon in linklist if enabledArthurHoaro2018-08-141-6/+10
|/ / | | | | | | Fixes #1075
* | Merge pull request #687 from ArthurHoaro/web-thumbArthurHoaro2018-07-285-12/+258
|\ \ | |/ |/| Use web-thumbnailer to retrieve thumbnails
| * Bunch of improvement for thumbnails integration:ArthurHoaro2018-07-171-1/+1
| | | | | | | | | | | | | | | | - add a default thumb size value (125x90px) - improve private vertical bar visual, especially with thumbnails - translations - add a sync thumbs button in tool and empty picwall page - fixes WT download mode in JSON config
| * Thumbnails: add a common mode to only retrieve thumbs from popular media ↵ArthurHoaro2018-07-053-11/+41
| | | | | | | | websites
| * Add a page to update all thumbnails through AJAX requests in both templatesArthurHoaro2018-07-052-10/+42
| |
| * Update thumbnail integration after rebasing the branchArthurHoaro2018-07-054-27/+134
| |
| * ConfigManager: add a method to remove an entryArthurHoaro2018-07-051-0/+23
| |
| * Use web-thumbnailer to retrieve thumbnailsArthurHoaro2018-07-052-0/+54
| | | | | | | | | | | | | | | | | | | | * requires PHP 5.6 * use blazy on linklist since a lot more thumbs are retrieved * thumbnails can be disabled * thumbs size is now 120x120 * thumbs are now cropped to fit the expected size Fixes #345 #425 #487 #543 #588 #590
* | Merge pull request #1141 from ArthurHoaro/api/tagsArthurHoaro2018-07-1011-0/+711
|\ \ | |/ |/| Implements Tags endpoints for Shaarli's REST API
| * GetTagsTest - Update to alpha sort for equal occurencesArthurHoaro2018-07-053-8/+8
| |
| * Implements Tags endpoints for Shaarli's REST APIArthurHoaro2018-06-0411-0/+711
| | | | | | | | | | | | | | | | | | | | | | | | Endpoints: * List All Tags [GET] * Get a tag [GET] * Update a tag [PUT] * Delete a tag [DELETE] Fixes #904 References shaarli/api-documentation#34