aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 09:30:18 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 16:34:56 +0100
commitb80ebc96748b45fd2e0ba9323308657c4b00b7ec (patch)
treeec20e0ffa2f86b9b54939a83a785407319f94559 /tests/acceptance
parent62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff)
downloadnextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.tar.gz
nextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.zip
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/bootstrap/FileListContext.php2
-rw-r--r--tests/acceptance/features/core/ActorContext.php4
-rw-r--r--tests/acceptance/features/core/Locator.php28
-rw-r--r--tests/acceptance/features/core/NextcloudTestServerContext.php2
4 files changed, 18 insertions, 18 deletions
diff --git a/tests/acceptance/features/bootstrap/FileListContext.php b/tests/acceptance/features/bootstrap/FileListContext.php
index cdf2e6acc6e..745f522d874 100644
--- a/tests/acceptance/features/bootstrap/FileListContext.php
+++ b/tests/acceptance/features/bootstrap/FileListContext.php
@@ -44,7 +44,7 @@ class FileListContext implements Context, ActorAwareInterface {
* @BeforeScenario
*/
public function initializeFileListAncestors() {
- $this->fileListAncestorsByActor = array();
+ $this->fileListAncestorsByActor = [];
$this->fileListAncestor = null;
}
diff --git a/tests/acceptance/features/core/ActorContext.php b/tests/acceptance/features/core/ActorContext.php
index 81587e40682..9ef34cae29f 100644
--- a/tests/acceptance/features/core/ActorContext.php
+++ b/tests/acceptance/features/core/ActorContext.php
@@ -132,8 +132,8 @@ class ActorContext extends RawMinkContext {
* are used in an "I act as XXX" step.
*/
public function initializeActors() {
- $this->actors = array();
- $this->sharedNotebook = array();
+ $this->actors = [];
+ $this->sharedNotebook = [];
$this->actors["default"] = new Actor("default", $this->getSession(), $this->getMinkParameter("base_url"), $this->sharedNotebook);
$this->actors["default"]->setFindTimeoutMultiplier($this->actorTimeoutMultiplier);
diff --git a/tests/acceptance/features/core/Locator.php b/tests/acceptance/features/core/Locator.php
index e670a5b8065..e3577f296f4 100644
--- a/tests/acceptance/features/core/Locator.php
+++ b/tests/acceptance/features/core/Locator.php
@@ -134,7 +134,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function id($value) {
- return $this->customSelector("named_exact", array("id", $value));
+ return $this->customSelector("named_exact", ["id", $value]);
}
/**
@@ -142,7 +142,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function idOrName($value) {
- return $this->customSelector("named_exact", array("id_or_name", $value));
+ return $this->customSelector("named_exact", ["id_or_name", $value]);
}
/**
@@ -150,7 +150,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function link($value) {
- return $this->customSelector("named_exact", array("link", $value));
+ return $this->customSelector("named_exact", ["link", $value]);
}
/**
@@ -158,7 +158,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function button($value) {
- return $this->customSelector("named_exact", array("button", $value));
+ return $this->customSelector("named_exact", ["button", $value]);
}
/**
@@ -166,7 +166,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function linkOrButton($value) {
- return $this->customSelector("named_exact", array("link_or_button", $value));
+ return $this->customSelector("named_exact", ["link_or_button", $value]);
}
/**
@@ -174,7 +174,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function field($value) {
- return $this->customSelector("named_exact", array("field", $value));
+ return $this->customSelector("named_exact", ["field", $value]);
}
/**
@@ -182,7 +182,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function selectField($value) {
- return $this->customSelector("named_exact", array("select", $value));
+ return $this->customSelector("named_exact", ["select", $value]);
}
/**
@@ -190,7 +190,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function checkbox($value) {
- return $this->customSelector("named_exact", array("checkbox", $value));
+ return $this->customSelector("named_exact", ["checkbox", $value]);
}
/**
@@ -198,7 +198,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function radioButton($value) {
- return $this->customSelector("named_exact", array("radio", $value));
+ return $this->customSelector("named_exact", ["radio", $value]);
}
/**
@@ -206,7 +206,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function fileInput($value) {
- return $this->customSelector("named_exact", array("file", $value));
+ return $this->customSelector("named_exact", ["file", $value]);
}
/**
@@ -214,7 +214,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function optionGroup($value) {
- return $this->customSelector("named_exact", array("optgroup", $value));
+ return $this->customSelector("named_exact", ["optgroup", $value]);
}
/**
@@ -222,7 +222,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function option($value) {
- return $this->customSelector("named_exact", array("option", $value));
+ return $this->customSelector("named_exact", ["option", $value]);
}
/**
@@ -230,7 +230,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function fieldSet($value) {
- return $this->customSelector("named_exact", array("fieldset", $value));
+ return $this->customSelector("named_exact", ["fieldset", $value]);
}
/**
@@ -238,7 +238,7 @@ class LocatorBuilder {
* @return LocatorBuilderSecondStep
*/
public function table($value) {
- return $this->customSelector("named_exact", array("table", $value));
+ return $this->customSelector("named_exact", ["table", $value]);
}
}
diff --git a/tests/acceptance/features/core/NextcloudTestServerContext.php b/tests/acceptance/features/core/NextcloudTestServerContext.php
index ff1296ba18a..8540a71a4f4 100644
--- a/tests/acceptance/features/core/NextcloudTestServerContext.php
+++ b/tests/acceptance/features/core/NextcloudTestServerContext.php
@@ -78,7 +78,7 @@ class NextcloudTestServerContext implements Context {
$nextcloudTestServerHelperClass = new ReflectionClass($nextcloudTestServerHelper);
if ($nextcloudTestServerHelperParameters === null) {
- $nextcloudTestServerHelperParameters = array();
+ $nextcloudTestServerHelperParameters = [];
}
$this->nextcloudTestServerHelper = $nextcloudTestServerHelperClass->newInstanceArgs($nextcloudTestServerHelperParameters);