Fixes for 2 code quality findings in Staff tests (#3887)

* Apply suggested fix to src/modules/Staff/tests/Unit/Api/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Staff/tests/Unit/Api/AdminTest.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Adam DaleyandCopilot Autofix powered by AI authored and GitHub committed 2026-07-04 21:55:44 +01:00
1 parent 8f8340fcc1
commit addd555cfe
1 file changed
+2 -2
@@ -197,7 +197,7 @@ test('change password', function (): void {
$api->setService($serviceMock);
$result = $api->change_password($data);
expect(true)->toBeTrue();
expect($result)->toBeTrue();
});
test('change password password do not match', function (): void {
@@ -270,7 +270,7 @@ test('group get pairs', function (): void {
expect($result)->toBeArray();
});
test('group can manage structure', function (): void {
test('is super administrator returns true when admin is super administrator', function (): void {
$api = new Box\Mod\Staff\Api\Admin();
$admin = staffAdminIdentity();
$admin->id = 1;