Skip to content

Commit

Permalink
Utilize explicit content type declaration inside executeActionsEmail …
Browse files Browse the repository at this point in the history
…endpoint to comply with keycloak api
  • Loading branch information
Daniel Maier committed Jan 15, 2025
1 parent c4b27cd commit ba4f7e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resource/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Fschmtt\Keycloak\Collection\RoleCollection;
use Fschmtt\Keycloak\Collection\UserCollection;
use Fschmtt\Keycloak\Http\Command;
use Fschmtt\Keycloak\Http\ContentType;
use Fschmtt\Keycloak\Http\Criteria;
use Fschmtt\Keycloak\Http\Method;
use Fschmtt\Keycloak\Http\Query;
Expand Down Expand Up @@ -219,6 +220,7 @@ public function executeActionsEmail(string $realm, string $userId, ?array $actio
],
$actions,
$criteria,
ContentType::JSON,
),
);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Resource/UsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Fschmtt\Keycloak\Collection\UserCollection;
use Fschmtt\Keycloak\Http\Command;
use Fschmtt\Keycloak\Http\CommandExecutor;
use Fschmtt\Keycloak\Http\ContentType;
use Fschmtt\Keycloak\Http\Criteria;
use Fschmtt\Keycloak\Http\Method;
use Fschmtt\Keycloak\Http\Query;
Expand Down Expand Up @@ -410,6 +411,7 @@ public function testExecuteActionsEmail(): void
'realm' => 'test-realm',
'userId' => 'test-user-id',
],
contentType: ContentType::JSON,
);

$commandExecutor = $this->createMock(CommandExecutor::class);
Expand Down

0 comments on commit ba4f7e3

Please sign in to comment.