Merge branch '1.9.x' into docs/remove-double-namespace-desc

This commit is contained in:
Harsh Mahajan
2026-05-26 18:45:16 +05:30
committed by GitHub
2 changed files with 20 additions and 2 deletions
@@ -76,8 +76,13 @@ class XList extends Action
$actions = Base::getProviderActions();
$documents = [];
foreach ($actions as $providerId => $updateClass) {
if (!($providers[$providerId]['enabled'] ?? false)) {
foreach ($providers as $providerId => $config) {
$updateClass = $actions[$providerId] ?? null;
if ($updateClass === null) {
continue;
}
if (!($config['enabled'] ?? false)) {
// Disabled by Appwrite configuration, exclude from response
continue;
}
+13
View File
@@ -81,6 +81,19 @@ trait OAuth2Base
}
}
public function testListOAuth2ProvidersSortedAlphabetically(): void
{
$response = $this->listOAuth2Providers();
$this->assertSame(200, $response['headers']['status-code']);
$ids = \array_column($response['body']['providers'], '$id');
$sorted = $ids;
\sort($sorted);
$this->assertSame($sorted, $ids);
}
/**
* Pin the exact set of registered providers — adding or removing a
* provider must be a deliberate change to this assertion. Catches