ensiie/UnsapaIPW — pull request #55 by Soulou (2012-05-11 22:07:34+00:00)
Title: Setup test with doctrine FIOUUU it's done

To cry a bit more.

Here is the basic setup to create test with symfony2 and doctrine2, difficult to find some doc, I spotted how to do reading the code.

I created a new environment at home (like during the course : 'test')

I copy my

```app/config/parameters.yml```
in
```
app/config/parameters_prod.yml
app/config/parameters_dev.yml
app/config/parameters_test.yml
```

The same for the config

Copy
```app/config/config_dev.yml``` to ```app/config/config_test.yml```

That's it normally,
Create your database

```
./app/console doctrine:database:create --env=test
./app/console doctrine:schema:create --env=test
```

Normally it's the only time you'll do it.