[tests-only] Fix share creation methods (#7400) (#7425)

fix steps

add method to create folder

strict check for successful request

fix steps
This commit is contained in:
Sawjan Gurung authored and GitHub committed 2023-10-06 17:11:31 +05:45
1 parent 9cee6bcbcd
commit bfe04776fb
5 files changed
+149 -417

No files matched your search

+2
View File
@@ -657,6 +657,8 @@ class HttpRequestHelper {
* @return array
*/
public static function parseResponseAsXml(ResponseInterface $response):array {
// rewind so that we can reparse it if it was parsed already
$response->getBody()->rewind();
$body = $response->getBody()->getContents();
$parsedResponse = [];
if ($body && \substr($body, 0, 1) === '<') {