aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* CSJeremy Benoist2019-05-103-20/+20
|
* Handle redirection from previous feedsJeremy Benoist2019-04-261-0/+33
|
* Fix tests & cs & migrationJeremy Benoist2019-04-264-32/+32
|
* Changed RSS to Atom feed and improve pagingThomas Citharel2019-04-257-251/+283
|
* Some cleanupJeremy Benoist2019-04-011-0/+18
| | | | Also, do not run the hashed_url migration into a Doctrine migration
* Use a better index for hashed_urlJeremy Benoist2019-04-012-16/+13
| | | | | | It'll most often be used in addition to the `user_id`. Also, automatically generate the hash when saving the url. Switch from `md5` to `sha1`.
* Keep url in exists endpointJeremy Benoist2019-04-012-43/+40
| | | | | | - Add migration - Use md5 instead of sha512 (we don't need security here, just a hash) - Update tests
* Hash the urls to check if they existThomas Citharel2019-04-012-2/+154
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-04-011-13/+55
|\
| * 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>
* | Adding more testsJeremy Benoist2019-02-271-0/+68
| |
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-02-071-0/+7
|\|
| * Improve checks & add testsJeremy Benoist2019-01-281-0/+7
| |
* | Change the way to enable 2FAJeremy Benoist2019-01-231-113/+81
| | | | | | | | And add a step to validate a generated code from the OTP app
* | Fix test for custom version of the tidy extensionJeremy Benoist2019-01-231-7/+7
| |
* | Enable OTP 2FAJeremy Benoist2019-01-234-10/+136
| | | | | | | | | | | | | | | | | | - Update SchebTwoFactorBundle to version 3 - Enable Google 2fa on the bundle - Disallow ability to use both email and google as 2fa - Update Ocramius Proxy Manager to handle typed function & attributes (from PHP 7) - use `$this->addFlash` shortcut instead of `$this->get('session')->getFlashBag()->add` - update admin to be able to create/reset the 2fa
* | Factorize sendResponse between Api controllersJeremy Benoist2019-01-221-3/+2
| | | | | | | | And run newer cs fixer
* | [wallabag/wallabag#2611] Fix PHPCS lint errorsCraig Roberts2019-01-221-5/+2
| |
* | Fixes [wallabag/wallabag#2611] Add a basic Search REST endpointCraig Roberts2019-01-221-0/+73
| | | | | | | | | | | | | | - Adds a new `search` key to `src/Wallabag/ApiBundle/Resources/config/routing_rest.yml` - Reuses the `getBuilderForSearchByUser` method from the EntryRepository - Supports, `term`, `page`, and `perPage` query parameters - Some very basic tests
* | Use only one method to randomizeJeremy Benoist2019-01-191-0/+26
| | | | | | | | Instead of one per type, one for all is ok.
* | Enable PHPStanJeremy Benoist2019-01-1820-41/+46
| | | | | | | | | | - Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
* | Add a new endpoint to retrieve information from the wallabag instanceJeremy Benoist2019-01-151-0/+17
| | | | | | | | | | | | | | Useful for api client which required some information. We might add more inside them in the future. The endpoint /api/version should be avoided now as it contains not so much information rather the version.
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-01-1512-11/+135
|\|
| * 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>
* | Fix utf8mb4 on vendor tablesJeremy Benoist2018-11-281-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating the schema for test these tables use default length for string: 255. Which fail when using utf8mb4. > Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes Also move the `setKeepStaticConnections` in before and after class to avoid: > SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
* | Use our own fork for CraueConfigBundleJeremy Benoist2018-11-281-0/+1
| | | | | | | | Mostly to fix utf8mb4 issue
* | CSJeremy Benoist2018-11-282-3/+3
| |
* | Fix testsJeremy Benoist2018-11-284-47/+63
| |
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2018-11-252-3/+373
|\| | | | | | | | | | | | | | | # Conflicts: # web/wallassets/baggy.js # web/wallassets/manifest.json # web/wallassets/material.css # web/wallassets/material.js
| * 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