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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2015-03-31 05:58:47 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2015-03-31 05:58:47 +0300
commit5bf6f2c09a4098b3b7ef68fed0ffc4a1bbacf286 (patch)
tree00d3420a6bd0e82370ff8e5edc200f6cb6cc830f /tests/PHPUnit/Framework/TestRequest
parent7a5920b8c6b764c593b95ad76f9efa52a8ca6697 (diff)
As SubtableIds are consecutive now, we might no longer have to remove them from the response
Diffstat (limited to 'tests/PHPUnit/Framework/TestRequest')
-rw-r--r--tests/PHPUnit/Framework/TestRequest/Response.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/PHPUnit/Framework/TestRequest/Response.php b/tests/PHPUnit/Framework/TestRequest/Response.php
index 676c859b81..e18b4e4b6e 100644
--- a/tests/PHPUnit/Framework/TestRequest/Response.php
+++ b/tests/PHPUnit/Framework/TestRequest/Response.php
@@ -197,8 +197,10 @@ class Response
$fieldsToRemove = @$this->params['xmlFieldsToRemove'];
}
- $fieldsToRemove[] = 'idsubdatatable';
-
+ if (!is_array($fieldsToRemove)) {
+ $fieldsToRemove = array();
+ }
+
foreach ($fieldsToRemove as $xml) {
$input = $this->removeXmlElement($input, $xml);
}
@@ -263,4 +265,4 @@ class Response
return $apiResponse;
}
-} \ No newline at end of file
+}