aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag
Commit message (Collapse)AuthorAgeFilesLines
* Use Locale instead of LanguageJeremy Benoist2017-06-091-14/+78
|
* Fix testJeremy Benoist2017-06-082-5/+5
| | | | | de_DE is not valid language. Zataz doesn’t send a valid language in their content (they use `fr-FR`).
* Validate language & preview picture fieldsJeremy Benoist2017-06-081-12/+117
| | | | | Instead of saving the value of each field right into the content without any validation, it seems better to validate them. This might sounds obvious now we say that.
* Add ability to name the clientJeremy Benoist2017-06-081-1/+2
|
* CSJeremy Benoist2017-06-072-4/+2
|
* Create a client when creating a user using the apiJeremy Benoist2017-06-071-0/+12
| | | | | | | | While creating a new user using the API, we also create a new client for the current user. So the app which just create the user can use its newly created client to configure the app. That new client is only return after creating the user. When calling the endpoint /api/user to get user information, the new client information won’t be return.
* Merge pull request #3093 from aaa2000/annotation-error-on-saveNicolas Lœuillet2017-06-071-1/+33
|\ | | | | Displays an error with an annotation with a too long quote
| * Displays an error with an annotation with a too long quoteadev2017-06-041-1/+33
| | | | | | | | Fix #2762
* | Merge pull request #3181 from wallabag/api-content-patchJérémy Benoist2017-06-071-0/+11
|\ \ | | | | | | Add ability to patch an entry with more fields
| * | Add ability to patch an entry with more fieldsJeremy Benoist2017-06-021-0/+11
| |/ | | | | | | | | | | | | | | | | Like when we create an entry, we can now patch an entry with new fields: - content - language - preview_picture - published_at - authors
* | Merge pull request #3184 from wallabag/better-way-image-extensionJérémy Benoist2017-06-072-0/+25
|\ \ | | | | | | Use an alternative way to detect images
| * | Use an alternative way to detect imageJeremy Benoist2017-06-052-0/+25
| |/ | | | | | | | | | | | | When parsing content to retrieve images to save locally, we only check for the content-type of the image response. In some case, that value is empty. Now we’re also checking for the first few bytes of the content as an alternative to detect if it’s an image wallabag can handle. We might get higher image supports using that alternative method.
* | Merge pull request #3179 from wallabag/show-user-commandJérémy Benoist2017-06-071-0/+95
|\ \ | | | | | | Show user command
| * | Fix reviewThomas Citharel2017-06-041-1/+1
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * | Add show user commandThomas Citharel2017-06-021-0/+95
| |/ | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Return 201 on user creationJeremy Benoist2017-06-021-2/+2
| |
* | API user creation behing a toggleJeremy Benoist2017-06-022-21/+85
|/ | | | | | | | I've added a toggle feature (in internal settings) so that user api creation can be disabled while form registration still can be enabled. Also, the /api/user endpoint shouldn't require authentication. Even if we check the authentication when sending a GET request, to retrieve current user information. I've moved all the internal settings definition to config to avoid duplicated place to define them. I don't know why we didn't did that earlier.
* Merge pull request #2708 from jcharaoui/import-disablecontentupdateJérémy Benoist2017-06-023-33/+54
|\ | | | | Import disableContentUpdate
| * Rewrote code & fix testsJeremy Benoist2017-06-019-50/+49
| |
| * Fix testsJeremy Benoist2017-06-011-2/+8
| |
| * Replace Wallabag v1 error strings with v2 stringsJerome Charaoui2017-06-011-1/+10
| |
| * Add disableContentUpdate import optionJerome Charaoui2017-06-018-35/+34
| | | | | | | | | | | | This commit also decouples the "import" and "update" functions inside ContentProxy. If a content array is available, it must be passed to the new importEntry method.
| * Avoid returning objects passed by reference.Jerome Charaoui2017-06-011-11/+19
| | | | | | | | | | | | Objects are always passed by reference, so it doesn't make sense to return an object which is passed by reference as it will always be the same object. This change makes the code a bit more readable.
* | Replace images with &Jeremy Benoist2017-06-011-3/+21
|/ | | | | | Images with `&` in the path weren’t well replaced because they might be with `&amp;` in the html instead. Replacing `&` with `&amp;` fix the problem.
* Merge pull request #3137 from aaa2000/isolated-testsJérémy Benoist2017-06-0112-262/+429
|\ | | | | Isolated tests
| * Isolated testsadev2017-05-3113-265/+433
| | | | | | | | Use https://github.com/dmaicher/doctrine-test-bundle to have test isolation.
* | Fix tests following rebaseJeremy Benoist2017-05-311-2/+2
| |
* | CSJeremy Benoist2017-05-311-3/+3
| |
* | Forced date can now be a timestamp tooJeremy Benoist2017-05-311-0/+81
| | | | | | | | Add adding more tests for forced content
* | Remove htmlawed and use graby insteadJeremy Benoist2017-05-311-13/+13
| | | | | | | | | | Instead of using htmlawed (which is already used in graby) use graby directly (which require some refacto on graby side). Still needs some tests.
* | Reduce imported entriesJeremy Benoist2017-05-318-491/+23
| | | | | | | | Down from 2.2 minutes to 1.39 minutes
* | Use graby ContentExtractor to clean htmlJeremy Benoist2017-05-311-0/+55
| | | | | | | | It might be better to re-use some graby functionalities to clean html instead of building a new system.
* | Add support for authorsJeremy Benoist2017-05-311-0/+4
| |
* | Allow other fields to be send using APIJeremy Benoist2017-05-315-21/+20
|/ | | | | | | | | | | | | | | | Entry API can now have these new fields: - content - language - preview_picture - published_at Re-use the ContentProxy to be able to do the same using the web UI (in the future). htmLawed is used to clean stuff from content, I hope it’ll be enough to avoid security breach. Lower content validation when we want to update an entry with content already defined. Before, language & content_type were required. If there weren’t provided, we re-fetched the content using graby. I think these fields aren’t required for an entry to be created. So I removed them. Which means some import from the v1 export won’t be re-fetched since they provide content, url & title. Also, remove liberation link from Readability import to avoid overlaping import (from wallabag v1, which had the same link)
* Merge pull request #3168 from wallabag/instapaper-tags-importNicolas Lœuillet2017-05-3112-31/+77
|\ | | | | Add support for tag in Instapaper import
| * CS & improve tags assertionsJeremy Benoist2017-05-319-18/+34
| |
| * Add support for tag in Instapaper importJeremy Benoist2017-05-313-13/+43
| |
* | Merge pull request #3138 from Kdecherf/2835-tagsNicolas Lœuillet2017-05-312-0/+28
|\ \ | | | | | | Ignore ActionMarkAsRead when removing tag from entry
| * | Ensure retrieved data are freshJeremy Benoist2017-05-311-0/+6
| | |
| * | TagController: ignore ActionMarkAsRead when removing tag from entryKevin Decherf2017-05-312-0/+22
| | | | | | | | | | | | | | | | | | Fixes #2835 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | | Merge pull request #3161 from wallabag/scrutinizer-2.3Nicolas Lœuillet2017-05-311-76/+30
|\ \ \ | |_|/ |/| | Fix some Scrutinizer issues
| * | Use a better way to set input for commandJeremy Benoist2017-05-301-76/+30
| | | | | | | | | | | | | | | | | | Actually use the correct to way handle that http://symfony.com/doc/current/components/console/helpers/questionhelper.html#testing-a-command-that-expects-input
* | | Merge pull request #3143 from wallabag/fix-wllbg2-importNicolas Lœuillet2017-05-312-1/+2
|\ \ \ | |_|/ |/| | Fixed is_starred for wallabag v2 import
| * | Add testsJeremy Benoist2017-05-302-1/+2
| | |
* | | Merge pull request #3065 from wallabag/api-creation-endpointJérémy Benoist2017-05-303-3/+113
|\ \ \ | |_|/ |/| | Register through API
| * | Avoid side effect on other testsJeremy Benoist2017-05-301-1/+13
| | |
| * | Remove unknown validation_groupsJeremy Benoist2017-05-301-2/+2
| | | | | | | | | | | | The Profile validation_groups does not exist and then for validation to be skipped (like password length)
| * | Re-use `NewUserType` to validate registrationJeremy Benoist2017-05-302-1/+99
| | | | | | | | | | | | | | | | | | The only ugly things is how we handle error by generating the view and then parse the content to retrieve all errors… Fix exposition fields in User entity
* | | Merge remote-tracking branch 'origin/master' into 2.3Jeremy Benoist2017-05-301-1/+1
|\ \ \ | |/ / |/| |
| * | Fix documentation URL for "How can I help to fix that?"Damien Cassou2017-05-241-1/+1
| | |