From 10ed11384ce9e6fca0be549e2dba13e32a2d81ab Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Tue, 6 Oct 2026 15:07:25 +0000 Subject: [PATCH] test(sequential-signing): cover parallel activation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Preserve the direct parallel-flow coverage from #8948 after #8912 superseded the production changes in that pull request. Co-authored-by: André Maia Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .../Unit/Service/SequentialSigningServiceTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/php/Unit/Service/SequentialSigningServiceTest.php b/tests/php/Unit/Service/SequentialSigningServiceTest.php index a56dfeb38c..28d3e53283 100644 --- a/tests/php/Unit/Service/SequentialSigningServiceTest.php +++ b/tests/php/Unit/Service/SequentialSigningServiceTest.php @@ -245,6 +245,18 @@ public function testActivateNextOrderReturnsTheActivatedSignersWithoutNotifyingT $this->assertSame([2, 3], array_map(fn (SignRequest $request): int => $request->getId(), $activated)); } + public function testActivateNextOrderReturnsNobodyWhenNotOrdered(): void { + $file = $this->createMock(FileEntity::class); + $file->method('getSignatureFlowEnum') + ->willReturn(SignatureFlow::PARALLEL); + $this->service->setFile($file); + + $this->signRequestMapper->expects($this->never())->method('getByFileId'); + $this->identifyMethodService->expects($this->never())->method('getIdentifyMethodsFromSignRequestId'); + + $this->assertSame([], $this->service->activateNextOrder(99, 1)); + } + public function testNotifyActivatedSignersNotifiesEverySignerItReceives(): void { $this->service->setFile($this->createMock(FileEntity::class));