From 1d54bb726a3583dc92ba008a15a897e78319982f Mon Sep 17 00:00:00 2001 From: acelot Date: Wed, 4 Oct 2023 12:53:52 +0700 Subject: [PATCH] Fixed Validation functional test --- .../tests/Functional/validateTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integrations/respect-validation/tests/Functional/validateTest.php b/integrations/respect-validation/tests/Functional/validateTest.php index 59df84e..dbc1c45 100644 --- a/integrations/respect-validation/tests/Functional/validateTest.php +++ b/integrations/respect-validation/tests/Functional/validateTest.php @@ -56,14 +56,14 @@ public function testFunction(): void self::assertCount(3, $validationContext->getErrors()); self::assertSame( [ - 'E-mail' => 'E-mail must be valid email', - 'Phone' => 'Phone must be a valid telephone number', - 'IP Address' => 'IP Address must be an IP address', + ['E-mail' => 'E-mail must be valid email'], + ['Phone' => 'Phone must be a valid telephone number'], + ['IP Address' => 'IP Address must be an IP address'], ], [ - ...$validationContext->getErrors()[0]->getMessages(), - ...$validationContext->getErrors()[1]->getMessages(), - ...$validationContext->getErrors()[2]->getMessages(), + $validationContext->getErrors()[0]->getMessages(), + $validationContext->getErrors()[1]->getMessages(), + $validationContext->getErrors()[2]->getMessages(), ] ); }