소스 검색

Add context classes to Composer autoload

In order to autoload the server context classes the "bootstrap"
directory was explicitly listed in Behat autoload configuration. This is
fine in the configuration of acceptance tests for the server, but it
would force the configuration of acceptance tests for the apps to
explicitly include the path for the server context classes to be able to
use them (for example, for the login step).

Besides with its own configuration Behat also supports autoloading
classes using Composer, so now context classes are autoloaded using
Composer instead; thanks to this the server context classes are
autoloaded also in the acceptance tests for apps without any explicit
configuration in them.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tags/v14.0.0beta1
Daniel Calviño Sánchez 6 년 전
부모
커밋
50d35bee9f
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    1
      tests/acceptance/composer.json
  2. 0
    2
      tests/acceptance/config/behat.yml

+ 1
- 1
tests/acceptance/composer.json 파일 보기

@@ -8,7 +8,7 @@
},
"autoload": {
"psr-4": {
"": "features/core"
"": ["features/bootstrap", "features/core"]
}
}
}

+ 0
- 2
tests/acceptance/config/behat.yml 파일 보기

@@ -1,6 +1,4 @@
default:
autoload:
'': %paths.base%/../features/bootstrap
suites:
default:
paths:

Loading…
취소
저장