Skip to content

Commit 345af2e

Browse files
relteDavertMik
authored andcommitted
Correct the API test suite configuration (Codeception#158)
1 parent 514d0bf commit 345af2e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

for/symfony.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,15 @@ You will need to enable `REST`, `Symfony` and `Doctrine` module in `tests/api.su
159159
class_name: ApiTester
160160
modules:
161161
enabled:
162+
- Symfony:
163+
app_path: 'src'
164+
environment: 'test'
162165
- REST:
163166
url: /v1
164167
depends: Symfony
165168
- Doctrine2:
166169
depends: Symfony
167170
- \Helper\Api
168-
config:
169-
- Symfony:
170-
app_path: 'src'
171-
environment: 'test'
172-
173171
```
174172
175173
Symfony module actions like `amOnPage` or `see` should not be available for testing API. This why Symfony module is not enabled but declared with `depends` for REST module. But Symfony module should be configured to load Kernel class from app_path.

0 commit comments

Comments
 (0)