Commit graph

13 commits

Author SHA1 Message Date
Jeremy Benoist 2a58606983 Fix tests 2016-01-31 14:48:26 +01:00
Jeremy Benoist 619cc45359 Symfony Upgrade Fixer FTW
symfony-upgrade-fixer fix src/Wallabag/
2016-01-15 09:35:38 +01:00
Jeremy Benoist 970e0e994f Remove duplicate comments 2015-11-07 14:18:38 +01:00
Jeremy Benoist 75c48e3ae0 CS 2015-11-07 14:16:13 +01:00
Jeremy Benoist d502762598 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 ..)
2015-11-07 14:16:13 +01:00
Jeremy Benoist 78507d2835 Fix deprecated helper in command 2015-11-06 23:39:19 +01:00
Jeremy Benoist af43bd3767 Fix tests
Ensure that created use during install command will always be unique.
We assume that the install command must be run to initialize a wallabag instance. NEVER to add more user.

Also, use a better way to retrieve the real name of the database and not the one defined in parameters.yml (which isn't the same for test envi because the dbname isn't defined in parameters.yml but directly in config_test.yml)
2015-09-12 11:36:16 +02:00
Nicolas Lœuillet a1691859ca implement FosUser 2015-09-11 20:32:37 +02:00
Jeremy 769e19dc4a Move API stuff in ApiBundle 2015-04-01 21:59:12 +02:00
Jeremy 0ee043f745 Update InstallCommand test
They are god damn too long to execute because it launch external command (mostly related to doctrine).

So I've added a PHPUnit @group (`command-doctrine`) so that we can avoid launching them on a regular basis, like that:

`phpunit --exclude-group command-doctrine`
2015-03-31 22:48:01 +02:00
Jeremy c641baad0e More tests on the install command 2015-02-22 23:29:48 +01:00
Jeremy 732c2ad897 sqlite doesn't support getListDatabasesSQL 2015-02-22 17:18:54 +01:00
Jeremy 0bf99bb144 Improve install command & add test
Also add fixtures for Config

InstallCommand now check if database, schema are here and ask the user what to do (keep or trash & re-create)
2015-02-22 14:35:36 +01:00