Browse Source

Fix capabilities intergration tests

Split the array element selection and the member selection.
tags/v9.1.0beta1
Roeland Jago Douma 8 years ago
parent
commit
0b4ff1a9e3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      build/integration/features/bootstrap/CapabilitiesContext.php

+ 2
- 2
build/integration/features/bootstrap/CapabilitiesContext.php View File

@@ -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(

Loading…
Cancel
Save