aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests after rebaseJeremy Benoist2019-05-281-12/+8
|
* CS & fix testsJeremy Benoist2019-05-281-15/+36
|
* Fix because of some breaking changes of Graby 2.0adev2019-05-281-33/+37
|
* [tests] Fix pre-existing tests (preview now imported + records added)nicofrand2019-05-211-1/+1
|
* [tests] Set first picture as preview picturenicofrand2019-05-211-0/+84
|
* Fix test for custom version of the tidy extensionJeremy Benoist2019-01-231-7/+7
|
* 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
* Fix testsJeremy Benoist2018-06-061-1/+0
|
* Fix countable in testsJeremy Benoist2017-12-181-4/+12
|
* Use namespaced PHPUnit classesJeremy Benoist2017-12-181-1/+2
|
* Define storeArticleHeaders false by defaultJeremy Benoist2017-11-211-14/+15
| | | | | Fix tests which must use `$storeArticleHeaders`. Fix CS
* Added internal setting to enable/disable headers storageNicolas Lœuillet2017-11-201-13/+13
|
* CSJeremy Benoist2017-07-031-5/+5
|
* Fix validateAndSetPreviewPictureJeremy Benoist2017-07-031-0/+35
| | | | Which wasn't covered by a test!
* Fix PATCH methodJeremy Benoist2017-07-031-5/+2
| | | | | The PATCH method for the entry should only update what user sent to us and not the whole entry as it was before. Also, sending tags when patching an entry will now remove all current tags & assocatied new ones.
* Fix testsJeremy Benoist2017-07-031-1/+1
|
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-76/+76
|
* Fix empty language and preview picsThomas Citharel2017-06-121-3/+3
|
* 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.
* Rewrote code & fix testsJeremy Benoist2017-06-011-19/+18
|
* Fix testsJeremy Benoist2017-06-011-2/+8
|
* Add disableContentUpdate import optionJerome Charaoui2017-06-011-5/+4
| | | | | | 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.
* 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.
* 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.
* CS & improve tags assertionsJeremy Benoist2017-05-311-1/+0
|
* 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
| |
* | Move Tags assigner to a separate fileThomas Citharel2017-05-271-129/+10
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Added test for deduplicationNicolas Lœuillet2017-05-051-1/+1
|/
* Avoid false preview imageJeremy Benoist2017-01-101-0/+41
| | | | | If the website doesn't provide an og_image, the value will be false and so it'll be saved like that in the database. We prefer to leave it as null instead of false.
* Revert switch to KernelTestCase for ContentProxyTestJerome Charaoui2016-12-031-3/+4
| | | | | Define the error string manually inside the test class instead of fetching it from app config.
* Fix ContentProxy testsJerome Charaoui2016-12-031-17/+18
|
* Added http_status in Entry entityNicolas Lœuillet2016-11-181-0/+4
|
* Use scheduled entity insertions to avoid tag duplicateJeremy Benoist2016-09-251-0/+23
| | | | Using `getScheduledEntityInsertions()` we can retrieve not yet flushed but already persisted entities and then avoid tags duplication on import.
* Jump to Symfony 3.1Jeremy Benoist2016-06-221-0/+318