Jeremy Benoist [Tue, 29 Dec 2015 14:04:46 +0000 (15:04 +0100)]
Cleanup tests
- WallabagRestController: remove the tag deletion from the API since we can't remove a tag now, we only remove reference to entries
- RuleBasedTaggerTest: remove workaround for asserting tag are equal since problem was related to mock expects (_call instead of findOneByLabel which was removed from the tag repository)
Jeremy Benoist [Sun, 27 Dec 2015 20:28:48 +0000 (21:28 +0100)]
Don't redirect to the content page after deletion
Fix #1512
We generate the url of the removed content and compare it to the referer url. If they matche, we redirect user to the homepage otherwise to the referer url.
Jeremy Benoist [Sun, 27 Dec 2015 21:26:49 +0000 (22:26 +0100)]
Avoid multiple tag creation
When a new tag is created but not yet persisted, it can be duplicated.
It could happen when multiple rules match the content and at least 2 of them should attach same new tag.
Mathieu Bruyen [Thu, 26 Nov 2015 08:20:23 +0000 (09:20 +0100)]
SMTP configuration through environment
Configuring SMTP parameters required to be written in files which is not
convenient when using docker containers as the credentials need to be in
the filesystem.
Created environment parameters override for those parameters. A new build
script created in order to generate those parameters right before
launching the application.
Jeremy Benoist [Fri, 6 Nov 2015 21:08:51 +0000 (22:08 +0100)]
Skipping PostgreSQL test that drop database
For a not-clear reason, I can't properly drop the current database. Even if Doctrine made a special case for that (https://github.com/doctrine/dbal/pull/849).
So instead of trying crazy things to achieve the test, better way is to skip test (too much wasted days ..)
Jeremy Benoist [Sun, 1 Nov 2015 22:42:52 +0000 (23:42 +0100)]
Re-enable test on doctrine command
It will slow down the whole test suite (because it'll use doctrine command).
Remove unecessary `KernelTestCase`.
Also rename `AbstractControllerTest` to `WallabagApiTestCase` for consistency.
Jeremy Benoist [Fri, 6 Nov 2015 22:39:14 +0000 (23:39 +0100)]
Update deps & add PHPUnit Bridge
Changelogs summary:
- symfony/phpunit-bridge installed in version v2.7.6
Release notes: https://github.com/symfony/phpunit-bridge/releases/tag/v2.7.6
- twig/twig updated from v1.23.0 to v1.23.1
See changes: https://github.com/twigphp/Twig/compare/v1.23.0...v1.23.1
Release notes: https://github.com/twigphp/Twig/releases/tag/v1.23.1
- doctrine/inflector updated from v1.0.1 to v1.1.0
See changes: https://github.com/doctrine/inflector/compare/v1.0.1...v1.1.0
Release notes: https://github.com/doctrine/inflector/releases/tag/v1.1.0
- doctrine/cache updated from v1.5.0 to v1.5.1
See changes: https://github.com/doctrine/cache/compare/v1.5.0...v1.5.1
Release notes: https://github.com/doctrine/cache/releases/tag/v1.5.1
- doctrine/doctrine-cache-bundle updated from v1.0.1 to 1.2.1
See changes: https://github.com/doctrine/DoctrineCacheBundle/compare/v1.0.1...1.2.1
Release notes: https://github.com/doctrine/DoctrineCacheBundle/releases/tag/1.2.1
- doctrine/doctrine-bundle updated from v1.5.2 to 1.6.0
See changes: https://github.com/doctrine/DoctrineBundle/compare/v1.5.2...1.6.0
Release notes: https://github.com/doctrine/DoctrineBundle/releases/tag/1.6.0
- friendsofsymfony/user-bundle updated from dev-master to dev-master
See changes: https://github.com/FriendsOfSymfony/FOSUserBundle/compare/d5b28c3...45d6f40
Jeremy Benoist [Fri, 30 Oct 2015 07:00:43 +0000 (08:00 +0100)]
Update deps
Changelogs summary:
- twig/twig updated from v1.22.3 to v1.23.0
See changes: https://github.com/twigphp/Twig/compare/v1.22.3...v1.23.0
Release notes: https://github.com/twigphp/Twig/releases/tag/v1.23.0
- doctrine/cache updated from v1.4.2 to v1.5.0
See changes: https://github.com/doctrine/cache/compare/v1.4.2...v1.5.0
Release notes: https://github.com/doctrine/cache/releases/tag/v1.5.0
- symfony/symfony updated from v2.7.5 to v2.7.6
See changes: https://github.com/symfony/symfony/compare/v2.7.5...v2.7.6
Release notes: https://github.com/symfony/symfony/releases/tag/v2.7.6
- sensio/distribution-bundle updated from v3.0.31 to v3.0.33
See changes: https://github.com/sensiolabs/SensioDistributionBundle/compare/v3.0.31...v3.0.33
Release notes: https://github.com/sensiolabs/SensioDistributionBundle/releases/tag/v3.0.33
- nelmio/api-doc-bundle updated from 2.9.0 to 2.10.3
See changes: https://github.com/nelmio/NelmioApiDocBundle/compare/2.9.0...2.10.3
Release notes: https://github.com/nelmio/NelmioApiDocBundle/releases/tag/2.10.3
- lexik/form-filter-bundle updated from v4.0.1 to v4.0.2
See changes: https://github.com/lexik/LexikFormFilterBundle/compare/v4.0.1...v4.0.2
Release notes: https://github.com/lexik/LexikFormFilterBundle/releases/tag/v4.0.2
- j0k3r/graby-site-config updated from 1.0.5 to 1.0.6
See changes: https://github.com/j0k3r/graby-site-config/compare/1.0.5...1.0.6
Release notes: https://github.com/j0k3r/graby-site-config/releases/tag/1.0.6
- j0k3r/graby updated from 1.0.2 to 1.0.4
See changes: https://github.com/j0k3r/graby/compare/1.0.2...1.0.4
Release notes: https://github.com/j0k3r/graby/releases/tag/1.0.4
- phpunit/phpunit updated from 4.8.13 to 4.8.16
See changes: https://github.com/sebastianbergmann/phpunit/compare/4.8.13...4.8.16
Release notes: https://github.com/sebastianbergmann/phpunit/releases/tag/4.8.16