Skip to content

Commit

Permalink
Fix tests after mixin validation error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
roerlemans authored and danielebarbaro committed Jul 2, 2024
1 parent ff064f1 commit 9c493e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Rules/VatNumberExistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testVatNumberDoesNotExist(): void
->andReturn(false);

$this->expectException(\Exception::class);
$this->expectExceptionMessage('The :attribute must be write in a valid number format {country_name}{vat_number}.');
$this->expectExceptionMessage('VAT number :attribute not exist.');

$rule->validate('vat_number_exist', $fake_vat, static function ($message): never {
throw new \Exception($message);
Expand Down
2 changes: 1 addition & 1 deletion tests/Rules/VatNumberFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testVatNumberFormatNotExist(): void
->andReturn(false);

$this->expectException(\Exception::class);
$this->expectExceptionMessage('VAT number :attribute not exist.');
$this->expectExceptionMessage('The :attribute must be write in a valid number format {country_name}{vat_number}.');

$rule->validate('vat_number_format', $fake_vat, static function ($message): never {
throw new \Exception($message);
Expand Down

0 comments on commit 9c493e6

Please sign in to comment.