mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 13:08:48 +01:00
test: update SignatureFlow tests for NONE mode
Add NONE mode to valid flow provider and remove zero from invalid numeric values since 0 is now a valid value (NONE). Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
e616899eeb
commit
5048bfb07e
1 changed files with 1 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
|
|||
final class SignatureFlowTest extends TestCase {
|
||||
public static function validFlowProvider(): array {
|
||||
return [
|
||||
'none' => [SignatureFlow::NONE, SignatureFlow::NUMERIC_NONE, 'none'],
|
||||
'parallel' => [SignatureFlow::PARALLEL, SignatureFlow::NUMERIC_PARALLEL, 'parallel'],
|
||||
'ordered_numeric' => [SignatureFlow::ORDERED_NUMERIC, SignatureFlow::NUMERIC_ORDERED_NUMERIC, 'ordered_numeric'],
|
||||
];
|
||||
|
|
@ -29,7 +30,6 @@ final class SignatureFlowTest extends TestCase {
|
|||
|
||||
public static function invalidNumericProvider(): array {
|
||||
return [
|
||||
'zero' => [0],
|
||||
'negative' => [-1],
|
||||
'three' => [3],
|
||||
'large' => [999],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue