Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-08 16:52:54 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-08 17:13:15 +0300
commit0b4ff1a9e36754311390f8f1319242e9c99d05e1 (patch)
tree36a36f02d0972f4b8a9b90e30b74b2630c120c80 /build
parent15833d9843c3ff7c0cb51b95f8610bddb044472d (diff)
Fix capabilities intergration tests
Split the array element selection and the member selection.
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/CapabilitiesContext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/CapabilitiesContext.php b/build/integration/features/bootstrap/CapabilitiesContext.php
index d30984f0db7..83d5f5fd2f3 100644
--- a/build/integration/features/bootstrap/CapabilitiesContext.php
+++ b/build/integration/features/bootstrap/CapabilitiesContext.php
@@ -39,9 +39,9 @@ class CapabilitiesContext implements Context, SnippetAcceptingContext {
foreach ($formData->getHash() as $row) {
$path_to_element = explode('@@@', $row['path_to_element']);
- $answeredValue = $capabilitiesXML->$row['capability'];
+ $answeredValue = $capabilitiesXML->{$row['capability']};
for ($i = 0; $i < count($path_to_element); $i++){
- $answeredValue = $answeredValue->$path_to_element[$i];
+ $answeredValue = $answeredValue->{$path_to_element[$i]};
}
$answeredValue = (string)$answeredValue;
PHPUnit_Framework_Assert::assertEquals(