From 137e8cb13ff70fff9978f119035dda8921b803f8 Mon Sep 17 00:00:00 2001 From: James Seconde Date: Mon, 16 Oct 2023 10:58:02 +0100 Subject: [PATCH] New Verify V2 Locales (#445) * new locale list * fix race condition, force php time --- .../VerifyObjects/VerificationLocale.php | 34 ++++++++++++++++--- test/Client/Credentials/KeypairTest.php | 5 +++ 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/Verify2/VerifyObjects/VerificationLocale.php b/src/Verify2/VerifyObjects/VerificationLocale.php index 9d7c0077..38632f8c 100644 --- a/src/Verify2/VerifyObjects/VerificationLocale.php +++ b/src/Verify2/VerifyObjects/VerificationLocale.php @@ -5,19 +5,43 @@ class VerificationLocale { private array $allowedCodes = [ - 'en-us', + 'fr-fr', 'en-gb', + 'en-us', 'es-es', - 'es-mx', 'es-us', 'it-it', - 'fr-fr', 'de-de', - 'ru-ru', - 'hi-in', 'pt-br', 'pt-pt', + 'ru-ru', + 'hi-in', 'id-id', + 'he-il', + 'yue-cn', + 'ja-jp', + 'ar-xa', + 'cs-cz', + 'cy-gb', + 'el-gr', + 'en-au', + 'en-in', + 'es-mx', + 'fi-fi', + 'fil-ph', + 'fr-ca', + 'hu-hu', + 'is-is', + 'nb-no', + 'nl-nl', + 'pl-pl', + 'ro-ro', + 'sv-se', + 'th-th', + 'tr-tr', + 'vi-vn', + 'zh-cn', + 'zh-tw' ]; public function __construct(protected string $code = 'en-us') diff --git a/test/Client/Credentials/KeypairTest.php b/test/Client/Credentials/KeypairTest.php index 9187b4c7..7537bd06 100644 --- a/test/Client/Credentials/KeypairTest.php +++ b/test/Client/Credentials/KeypairTest.php @@ -29,6 +29,11 @@ public function setUp(): void $this->key = file_get_contents(__DIR__ . '/test.key'); } + public function time(): int + { + return 1697209080; + } + public function testAsArray(): void { $credentials = new Keypair($this->key, $this->application);