aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix testJeremy Benoist2019-05-271-1/+1
|
* Adding more tests to cover different scenarioJeremy Benoist2019-04-241-11/+123
|
* FIx unrelated failing testJeremy Benoist2019-04-231-1/+1
|
* Add ability to match many domains for credentialsJeremy Benoist2019-04-231-9/+9
| | | | | Instead of fetching one domain, we use the same method as in site config (to retrieve the matching file) and handle api.example.org, example.org, .org (yes the last one isn’t useful). If one of these match, we got it and use it.
* tests: fix broken session clients for rest entry deletion testsKevin Decherf2019-02-201-4/+13
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntryRestController: add support of expect parameter to delete actionKevin Decherf2019-02-201-5/+16
| | | | | | | | | | | The expect parameter enables an application to request the whole entry or only the id when requesting its deletion. `expects` defaults to `entry` to prevent any API breakage. Fixes #3711 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* tests: create entry for testDeleteEntry, fix missing idKevin Decherf2019-02-171-7/+29
| | | | | | | | | | | When using the entity manager to retrieve an already stored entry, the id disapears from $entry after the first delete call. This leads to testing a nonexistent endpoint (api/entries/.json) during the second delete call. This change now creates an entry specifically for the test. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Improve checks & add testsJeremy Benoist2019-01-281-0/+7
|
* Avoid error when a bad `order` parameter is givenJeremy Benoist2019-01-141-0/+9
| | | | Only allowed parameter are asc & desc
* Merge pull request #3826 from wallabag/epub-tocJérémy Benoist2019-01-111-3/+8
|\ | | | | Rework of EPUB/PDF exports
| * EntriesExport: sanitize filename and fix testsKevin Decherf2019-01-081-3/+8
| | | | | | | | | | | | | | | | Filename will now only use a-zA-Z0-9-' and space. Fixes remaining filename issue on #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Merge pull request #3831 from wallabag/fix/api-bad-client-idJérémy Benoist2019-01-101-0/+14
|\ \ | |/ |/| Cast client id to avoid PG error
| * Cast client id to avoid PG errorJeremy Benoist2019-01-091-0/+14
| | | | | | | | If someone send a malformated client_id when trying to authenticate using the API we got a 500 if wallabag use postgres because the request send a string instead of an integer.
* | Merge pull request #3820 from ↵Jérémy Benoist2019-01-078-6/+60
|\ \ | | | | | | | | | | | | lizyn/bugfix/incorrect-calculation-of-CJK-characters-in-reading-time-estimation Fix incorrect reading time calculation for entries with CJK characters
| * | Counting two characters together as a word in CJKlizyn2019-01-063-4/+4
| | |
| * | Improve reading time testsJeremy Benoist2019-01-048-6/+39
| | |
| * | fix incorrect reading time calculation for entries with CJK characterslizyn2018-12-253-0/+21
| |/
* | TagRestController: fix test for tag without entriesKevin Decherf2018-12-301-2/+12
| | | | | | | | | | | | | | | | As the deletion now requires that at least one entry for the user must be linked to the given tag, we fix the test testDeleteUserTag by linking it to an entry. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | TagRestController: add tests to ensure that other user's tags are unreachableKevin Decherf2018-12-301-0/+32
|/ | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Prepare 2.3.4 releaseJeremy Benoist2018-11-231-3/+2
|
* updateOriginUrl: remove 'query string' case from ignore listKevin Decherf2018-10-241-10/+2
| | | | | | | Two urls with a different query string may refer to two different pages so keep them both. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ignoreOriginUrl: add initial support of ignore listsKevin Decherf2018-10-221-1/+33
| | | | | | | | | | | Add the ability to specify hosts and patterns lists to ignore the given entry url and replace it with the fetched content url without touching to origin_url. This initial support should be reworked in the following months to move the hardcoded ignore lists in the database. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: add behavior when diff is fragment and queryKevin Decherf2018-10-221-0/+8
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Refactor updateOriginUrl to include new behaviors behaviorsKevin Decherf2018-10-221-26/+95
| | | | | | | | - Leave origin_url unchanged if difference is an ending slash - Leave origin_url unchanged if difference is scheme - Ignore (noop) if difference is query string or fragment Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ContentProxy: swap entry url to origin_url and set new url according to ↵Kevin Decherf2018-10-211-0/+26
| | | | | | | | graby content Closes #3529 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Run php-cs-fixer for fixing coding standard issues (on ContentProxyTest)Tobi8232018-09-231-11/+19
|
* Make helper methods strToHex and hexToStr in ContentProxyTest.php privateTobi8232018-09-211-2/+2
| | | | to prevent misusage (from outside this class)
* Add tests for logicTobi8232018-09-211-0/+236
| | | | Try to translate the title of a PDF from UTF-8 (then UTF-16BE, then WINDOWS-1252) to UTF-8
* Liberation goes httpsJeremy Benoist2018-09-215-11/+14
|
* Fix testsJeremy Benoist2018-09-071-4/+4
|
* php-cs-fixerKevin Decherf2018-09-0513-31/+31
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Removing failing test from TravisJeremy Benoist2018-08-191-4/+0
|
* More robust srcset image attribute handlingSimounet2018-07-121-0/+25
| | | | Linked to HTMLawed PR https://github.com/kesar/HTMLawed/pull/17
* Replace SO url by lemondeJeremy Benoist2018-07-052-6/+6
| | | | Looks like we got a lot of random failing while grabing SO content, replacing it might fix the problem.
* Fix image downloading on null image pathSimounet2018-07-051-0/+23
|
* Fix testsJeremy Benoist2018-06-068-31/+30
|
* Fix srcset attribute on images downloadedSimounet2018-06-011-0/+21
|
* Allow login by emailFloran Brutel2018-04-011-1/+11
|
* Fix CS in UtilsTest.phpFloran Brutel2018-03-311-1/+1
|
* Replace zataz urlFloran Brutel2018-03-303-9/+9
|
* Use https instead of http for bild.de to fix testsFloran Brutel2018-03-291-1/+1
|
* 20 Minutes is now httpsJeremy Benoist2018-02-242-2/+2
|
* Fixed testsNicolas Lœuillet2018-01-123-6/+6
|
* php-csKevin Decherf2017-12-311-1/+1
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add test to prevent regression for #3534Kevin Decherf2017-12-311-0/+20
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add missing assertion in testsJeremy Benoist2017-12-181-0/+3
|
* Fix countable in testsJeremy Benoist2017-12-181-4/+12
|
* Add missing TestCase namespaceJeremy Benoist2017-12-185-5/+10
|
* Fix typoJeremy Benoist2017-12-181-3/+3
|
* Use namespaced PHPUnit classesJeremy Benoist2017-12-1823-23/+46
|