aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3959 from wallabag/mig-tag-collationJérémy Benoist2019-06-061-0/+46
|\ | | | | mysql: change collation of tag label
| * mysql: change collation of tag tableKevin Decherf2019-05-191-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | utf8mb4_unicode_ci considers that 'caché' is equal to 'cache' which can lead to attaching incorrect tags to entries. This issue is due to some unicode normalization done by MySQL. utf8mb4_bin makes no unicode normalization, letting wallabag to consider 'cache' and 'caché' as two different tags. We change the collation of the whole table as Doctrine does not support setting a collation on a column for a specific platform (it tries to apply utf8mb4_bin even for pgsql and sqlite). Fixes #3302 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Add ability to revoke feed tokenJeremy Benoist2019-06-051-1/+17
| |
* | Use two indexes instead of one for hashed urlsJeremy Benoist2019-06-051-0/+3
| | | | | | | | | | When using `OR` in a where clause, a composite index can't be used. We should use a `UNION` to take advantages of it. Instead, create 2 indexes on each hashed urls and make 2 queries to find an url. It'll be faster than the previous solution.
* | Added given_url in entry tableNicolas Lœuillet2019-05-291-1/+35
| | | | | | | | | | | | | | | | | | | | - Added index on entry table for given_url field - Fix tests: The previous `bit.ly` url redirected to doc.wallabag but that url doesn't exist in the fixtures. I used our own internal "redirector" to create a redirect to an url which exist in the fixtures. Also, updating current migration to use the new `WallabagMigration`.
* | Fix tests after rebaseJeremy Benoist2019-05-281-12/+8
| |
* | CS & fix testsJeremy Benoist2019-05-281-15/+36
| |
* | Fix some testsJeremy Benoist2019-05-281-31/+13
| |
* | CSJeremy Benoist2019-05-282-2/+2
| |
* | Fix because of some breaking changes of Graby 2.0adev2019-05-281-33/+37
| |
* | Use httplugadev2019-05-282-279/+204
| |
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-05-271-1/+1
|\ \
| * | Fix testJeremy Benoist2019-05-271-1/+1
| | |
* | | [tests] Fix pre-existing tests (preview now imported + records added)nicofrand2019-05-212-2/+2
| | |
* | | [tests] Set first picture as preview picturenicofrand2019-05-211-0/+84
| | |
* | | Merge pull request #3960 from wallabag/api-entries-2817Jérémy Benoist2019-05-211-0/+21
|\ \ \ | | | | | | | | api/entries: add parameter detail to exclude or include content in response
| * | | api/entries: add parameter detail to exclude or include content in responseKevin Decherf2019-05-181-0/+21
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | detail=metadata will nullify the content field of entries in order to make smaller responses. detail=full keeps the former behavior, it sends the content of entries. It's the default, for backward compatibility. Fixes #2817 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | | CSJeremy Benoist2019-05-151-2/+4
| | |
* | | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-05-151-20/+131
|\ \ \ | |/ / |/| / | |/
| * 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.
* | 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>