fix: SonarQube DocuSealService - returns, params

- sendDevisForSignature : 5->3 returns (fusion 3 guards)
- downloadSignedDevis : 7->3 returns (extraction fetchAndStoreDevisDocuments + downloadAuditForDevis)
- sendComptaForSignature : 8->6 params (metadata groupee en array)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-08 14:33:38 +02:00
parent a0832e05c3
commit c119b88192
3 changed files with 68 additions and 105 deletions

View File

@@ -627,9 +627,7 @@ class DocuSealServiceTest extends TestCase
'Export Compta',
'user@example.com',
'Jean Dupont',
'fec',
'01/01/2026',
'31/03/2026'
['export_type' => 'fec', 'period_from' => '01/01/2026', 'period_to' => '31/03/2026'],
);
$this->assertSame(111, $result);
@@ -646,10 +644,8 @@ class DocuSealServiceTest extends TestCase
'Export Compta',
'user@example.com',
'Jean Dupont',
'grand_livre',
'01/01/2026',
'31/12/2026',
'https://redirect.example.com'
['export_type' => 'grand_livre', 'period_from' => '01/01/2026', 'period_to' => '31/12/2026'],
'https://redirect.example.com',
);
$this->assertSame(222, $result);
@@ -667,9 +663,7 @@ class DocuSealServiceTest extends TestCase
'Export Compta',
'user@example.com',
'Jean Dupont',
'balance',
'01/01/2026',
'31/12/2026'
['export_type' => 'balance', 'period_from' => '01/01/2026', 'period_to' => '31/12/2026'],
);
$this->assertSame(333, $result);
@@ -684,9 +678,7 @@ class DocuSealServiceTest extends TestCase
'Export Compta',
'user@example.com',
'Jean Dupont',
'fec',
'01/01/2026',
'31/03/2026'
['export_type' => 'fec', 'period_from' => '01/01/2026', 'period_to' => '31/03/2026'],
);
$this->assertNull($result);