[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
2023-10-06 17:11:31 +05:45
committed by GitHub
parent 9cee6bcbcd
commit bfe04776fb
5 changed files with 149 additions and 417 deletions

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) === '<') {