summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-09 19:07:19 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-09 21:50:30 +0200
commit4341d8731e6cd4ea59f3f23156979e7689f066d7 (patch)
tree84bfecb576aa133de0af685108b77a13bc28a68c /tests/acceptance
parentaa96dfd1731ed448a34ea8a09a53289359711bda (diff)
downloadnextcloud-server-4341d8731e6cd4ea59f3f23156979e7689f066d7.tar.gz
nextcloud-server-4341d8731e6cd4ea59f3f23156979e7689f066d7.zip
Rename helper for PHP built-in web server
For consistency with the helper for the Apache web server the helper for the PHP built-in web server was renamed too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerContext.php14
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php (renamed from tests/acceptance/features/core/NextcloudTestServerLocalHelper.php)14
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/acceptance/features/core/NextcloudTestServerContext.php b/tests/acceptance/features/core/NextcloudTestServerContext.php
index f8d13a656b9..ff1296ba18a 100644
--- a/tests/acceptance/features/core/NextcloudTestServerContext.php
+++ b/tests/acceptance/features/core/NextcloudTestServerContext.php
@@ -40,12 +40,12 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
*
* The Nextcloud server is provided by an instance of NextcloudTestServerHelper;
* its class must be specified when this context is created. By default,
- * "NextcloudTestServerLocalHelper" is used, although that can be customized
- * using the "nextcloudTestServerHelper" parameter in "behat.yml". In the same
- * way, the parameters to be passed to the helper when it is created can be
- * customized using the "nextcloudTestServerHelperParameters" parameter, which
- * is an array (without keys) with the value of the parameters in the same order
- * as in the constructor of the helper class (by default, [ ]).
+ * "NextcloudTestServerLocalBuiltInHelper" is used, although that can be
+ * customized using the "nextcloudTestServerHelper" parameter in "behat.yml". In
+ * the same way, the parameters to be passed to the helper when it is created
+ * can be customized using the "nextcloudTestServerHelperParameters" parameter,
+ * which is an array (without keys) with the value of the parameters in the same
+ * order as in the constructor of the helper class (by default, [ ]).
*
* Example of custom parameters in "behat.yml":
* default:
@@ -73,7 +73,7 @@ class NextcloudTestServerContext implements Context {
* @param array $nextcloudTestServerHelperParameters the parameters for the
* constructor of the $nextcloudTestServerHelper class.
*/
- public function __construct($nextcloudTestServerHelper = "NextcloudTestServerLocalHelper",
+ public function __construct($nextcloudTestServerHelper = "NextcloudTestServerLocalBuiltInHelper",
$nextcloudTestServerHelperParameters = [ ]) {
$nextcloudTestServerHelperClass = new ReflectionClass($nextcloudTestServerHelper);
diff --git a/tests/acceptance/features/core/NextcloudTestServerLocalHelper.php b/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
index b11a9ae8217..722f580171a 100644
--- a/tests/acceptance/features/core/NextcloudTestServerLocalHelper.php
+++ b/tests/acceptance/features/core/NextcloudTestServerLocalBuiltInHelper.php
@@ -36,14 +36,14 @@
* initial state for the Nextcloud server expected by the acceptance tests.
*
* The Nextcloud server is available at "$nextcloudServerDomain", which can be
- * optionally specified when the NextcloudTestServerLocalHelper is created; if
- * no value is given "127.0.0.1" is used by default. In any case, the value of
- * "$nextcloudServerDomain" must be seen as a trusted domain by the Nextcloud
- * server (which would be the case for "127.0.0.1" if it was installed by
- * running "occ maintenance:install"). The base URL to access the Nextcloud
+ * optionally specified when the NextcloudTestServerLocalBuiltInHelper is
+ * created; if no value is given "127.0.0.1" is used by default. In any case,
+ * the value of "$nextcloudServerDomain" must be seen as a trusted domain by the
+ * Nextcloud server (which would be the case for "127.0.0.1" if it was installed
+ * by running "occ maintenance:install"). The base URL to access the Nextcloud
* server can be got from "getBaseUrl".
*/
-class NextcloudTestServerLocalHelper implements NextcloudTestServerHelper {
+class NextcloudTestServerLocalBuiltInHelper implements NextcloudTestServerHelper {
/**
* @var string
@@ -56,7 +56,7 @@ class NextcloudTestServerLocalHelper implements NextcloudTestServerHelper {
private $phpServerPid;
/**
- * Creates a new NextcloudTestServerLocalHelper.
+ * Creates a new NextcloudTestServerLocalBuiltInHelper.
*/
public function __construct($nextcloudServerDomain = "127.0.0.1") {
$this->nextcloudServerDomain = $nextcloudServerDomain;