Tighten service test signal

This commit is contained in:
2026-03-19 20:15:48 +01:00
parent 28008c008c
commit 72c7f1b337
5 changed files with 36 additions and 133 deletions

View File

@@ -229,7 +229,7 @@ class PermissionServiceTest extends TestCase
->with(10)
->willReturn(['id' => 10, 'key' => 'custom.perm', 'active' => 0]);
$this->permissionRepository->expects($this->any())->method('update')->with(10, $this->isType('array'))->willReturn(true);
$this->permissionRepository->expects($this->any())->method('update')->with(10, $this->isArray())->willReturn(true);
$this->systemAuditService->expects($this->once())->method('record');
$result = $this->service->updateFromAdmin(10, $input);