aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-06 04:13:42 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-06 04:13:42 +0200
commit50d35bee9f954aa1a7212dcc44c95a4a419e0500 (patch)
treeccde313db88341c8b8b32b018f9a40c6e3d6d36e /tests/acceptance
parentc5cc1d80e6227d101a55a17d40f971e9833f50fa (diff)
downloadnextcloud-server-50d35bee9f954aa1a7212dcc44c95a4a419e0500.tar.gz
nextcloud-server-50d35bee9f954aa1a7212dcc44c95a4a419e0500.zip
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>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/composer.json2
-rw-r--r--tests/acceptance/config/behat.yml2
2 files changed, 1 insertions, 3 deletions
diff --git a/tests/acceptance/composer.json b/tests/acceptance/composer.json
index 87b6ba4a22c..244aa976692 100644
--- a/tests/acceptance/composer.json
+++ b/tests/acceptance/composer.json
@@ -8,7 +8,7 @@
},
"autoload": {
"psr-4": {
- "": "features/core"
+ "": ["features/bootstrap", "features/core"]
}
}
}
diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml
index 0eda2b19803..3cd71eec047 100644
--- a/tests/acceptance/config/behat.yml
+++ b/tests/acceptance/config/behat.yml
@@ -1,6 +1,4 @@
default:
- autoload:
- '': %paths.base%/../features/bootstrap
suites:
default:
paths: