diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-03-31 05:58:47 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-03-31 05:58:47 +0300 |
commit | 5bf6f2c09a4098b3b7ef68fed0ffc4a1bbacf286 (patch) | |
tree | 00d3420a6bd0e82370ff8e5edc200f6cb6cc830f /tests/PHPUnit/Framework/TestRequest | |
parent | 7a5920b8c6b764c593b95ad76f9efa52a8ca6697 (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.php | 8 |
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 +} |