Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 14, 2023
1 parent ae502ad commit b632aaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@
"phpunit",
"phpcs"
]
},
"config": {
"allow-plugins": {
"kylekatarnls/update-helper": false
}
}
}
4 changes: 2 additions & 2 deletions tests/LocalesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit b632aaf

Please sign in to comment.