From b632aaf5e4579d0b2ae8bc61785e238bff4c5156 Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Mon, 14 Aug 2023 17:15:05 +0200 Subject: [PATCH] updated tests --- composer.json | 5 +++++ tests/LocalesTest.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5c5c2b5c..289e14f1 100644 --- a/composer.json +++ b/composer.json @@ -50,5 +50,10 @@ "phpunit", "phpcs" ] + }, + "config": { + "allow-plugins": { + "kylekatarnls/update-helper": false + } } } diff --git a/tests/LocalesTest.php b/tests/LocalesTest.php index 30fb8693..73f6bc6c 100644 --- a/tests/LocalesTest.php +++ b/tests/LocalesTest.php @@ -37,8 +37,8 @@ public function testLocalesVariants() $pluralForms = $translations->getPluralForms(); - $this->assertEquals(2, $pluralForms[0]); - $this->assertEquals('n > 1', $pluralForms[1]); + $this->assertEquals(3, $pluralForms[0]); + $this->assertEquals('(n == 0 || n == 1) ? 0 : ((n != 0 && n % 1000000 == 0) ? 1 : 2)', $pluralForms[1]); $translations->setLanguage('az');