Skip to content

Commit

Permalink
Fixed Validation functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
acelot committed Oct 4, 2023
1 parent e4599eb commit 1d54bb7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]
);
}
Expand Down

0 comments on commit 1d54bb7

Please sign in to comment.