test: add settings helper

test: move methods to helper
This commit is contained in:
Saw-jan
2024-07-08 09:44:48 +05:45
parent 18d0eaa5c2
commit a8ee23734c
7 changed files with 353 additions and 136 deletions
@@ -2517,9 +2517,9 @@ class GraphContext implements Context {
$credentials['password']
);
$jsonObj = $this->featureContext->getJsonDecodedResponseBodyContent($response);
$jsonBody = $this->featureContext->getJsonDecodedResponseBodyContent($response);
foreach ($jsonObj->value as $share) {
foreach ($jsonBody->value as $share) {
$autoSync = $this->featureContext->getUserAutoSyncSetting($credentials['username']);
$tryAgain = !$share->{'@client.synchronize'} && $autoSync && $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();