From 9c493e668a3c34b6bbfd373d572dd3b31a01fc0e Mon Sep 17 00:00:00 2001 From: Ron Oerlemans Date: Tue, 2 Jul 2024 09:16:56 +0200 Subject: [PATCH] Fix tests after mixin validation error messages --- tests/Rules/VatNumberExistTest.php | 2 +- tests/Rules/VatNumberFormatTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Rules/VatNumberExistTest.php b/tests/Rules/VatNumberExistTest.php index ad1fa3b..c1f6c20 100755 --- a/tests/Rules/VatNumberExistTest.php +++ b/tests/Rules/VatNumberExistTest.php @@ -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); diff --git a/tests/Rules/VatNumberFormatTest.php b/tests/Rules/VatNumberFormatTest.php index a66400d..4b4f6cd 100755 --- a/tests/Rules/VatNumberFormatTest.php +++ b/tests/Rules/VatNumberFormatTest.php @@ -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);