From fc08003ac1f1aa91e41ed3d2af295fd4cd4452d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20S=C3=B8rensen?= Date: Tue, 10 Sep 2024 17:09:36 +0200 Subject: [PATCH 1/2] Adds 'VES' as allowable currency. Already mentioned in testing. --- src/Classes/Currency.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Classes/Currency.php b/src/Classes/Currency.php index d330a38..7cd52bc 100644 --- a/src/Classes/Currency.php +++ b/src/Classes/Currency.php @@ -160,6 +160,7 @@ class Currency 'UYU', 'UZS', 'VEF', + 'VES', 'VND', 'VUV', 'WST', From f08565175b3907312ec9f1f360e5db6009a92722 Mon Sep 17 00:00:00 2001 From: Ash Allen Date: Wed, 11 Sep 2024 09:21:53 +0100 Subject: [PATCH 2/2] Added test for new currency. --- tests/Unit/Rules/ValidCurrencyTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/Rules/ValidCurrencyTest.php b/tests/Unit/Rules/ValidCurrencyTest.php index be839ea..3099a2f 100644 --- a/tests/Unit/Rules/ValidCurrencyTest.php +++ b/tests/Unit/Rules/ValidCurrencyTest.php @@ -16,6 +16,7 @@ final class ValidCurrencyTest extends TestCase * @testWith ["GBP"] * ["BYR"] * ["BYN"] + * ["VES"] */ public function validator_returns_true_if_the_currency_is_valid(string $currency): void {