mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge branch '1.9.x' into docs/remove-double-namespace-desc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user