Enhance debugging output in OAuth2 mock endpoints and update MongoDB version in tests. Added var_dump statements for better traceability during OAuth2 flows and adjusted test assertions for user search functionality.

This commit is contained in:
shimon
2025-08-11 11:27:45 +03:00
parent 40e36e23dd
commit da706378ea
7 changed files with 732 additions and 687 deletions
+9 -1
View File
@@ -57,6 +57,14 @@ class Mock extends OAuth2
protected function getTokens(string $code): array
{
if (empty($this->tokens)) {
var_dump('Tring to get tokes from url: http://localhost/' . $this->version . '/mock/tests/general/oauth2/token?' .
\http_build_query([
'client_id' => $this->appID,
'redirect_uri' => $this->callback,
'client_secret' => $this->appSecret,
'code' => $code
]));
$this->tokens = \json_decode($this->request(
'GET',
'http://localhost/' . $this->version . '/mock/tests/general/oauth2/token?' .
@@ -68,7 +76,7 @@ class Mock extends OAuth2
])
), true);
}
var_dump('@@@@@@@@@');
return $this->tokens;
}