mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-25 05:08:32 +00:00
Fix formatting issues
This commit is contained in:
@@ -94,7 +94,7 @@ The form:
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
|
||||
/**
|
||||
###### *
|
||||
*
|
||||
*/
|
||||
class ClosingMotiveType extends AbstractType
|
||||
{
|
||||
|
||||
@@ -8,11 +8,13 @@ A Chill bundle may rely on the Routing Loader defined in ChillMain.
|
||||
|
||||
The loader will load `yml` or `xml` files. You simply have to add them into `chill_main` config
|
||||
|
||||
```yaml
|
||||
chill_main:
|
||||
# ... other stuff here
|
||||
routing:
|
||||
resources:
|
||||
- @ChillMyBundle/Resources/config/routing.yml
|
||||
```
|
||||
|
||||
### Load routes automatically
|
||||
|
||||
|
||||
@@ -13,12 +13,14 @@ In reason of the Chill architecture, test should be runnable from the bundle's d
|
||||
|
||||
This is the most convenient method for developer: run test for chill bundle from the main app.
|
||||
|
||||
```bash
|
||||
# run into a container
|
||||
`docker-compose exec --user $(id -u) php bash`
|
||||
# execute all tests suites
|
||||
`bin/phpunit`
|
||||
# ... or execute a single test
|
||||
`bin/phpunit vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Tests/path/to/FileTest.php`
|
||||
```
|
||||
|
||||
You can also run tests in a single command:
|
||||
|
||||
@@ -32,6 +34,7 @@ For ease, the app is cloned using a `git submodule`, which clone the main app in
|
||||
|
||||
You may boostrap the tests for the chill bundle this way:
|
||||
|
||||
```bash
|
||||
# ensure to be located into the environment (provided by docker suits well)
|
||||
`docker-compose exec --user $(id -u) php bash`
|
||||
# go to chill subdirectory
|
||||
@@ -43,12 +46,13 @@ You may boostrap the tests for the chill bundle this way:
|
||||
`curl -sS https://getcomposer.org/installer | php`
|
||||
# run tests
|
||||
`bin/phpunit`
|
||||
```
|
||||
|
||||
If you are on a fresh installation, you will need to migrate database schema.
|
||||
|
||||
The path to the console tool must be adapted to the app. To load migration and add fixtures, one can execute the following commands:
|
||||
|
||||
```bash
|
||||
tests/app/bin/console doctrine:migrations:migrate
|
||||
tests/app/bin/console doctrine:fixtures:load
|
||||
```
|
||||
```bash
|
||||
tests/app/bin/console doctrine:migrations:migrate
|
||||
tests/app/bin/console doctrine:fixtures:load
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user