function LocalePluralFormatTest::testGetPluralFormat
Tests locale_get_plural() functionality.
File
-
modules/
locale/ locale.test, line 813
Class
- LocalePluralFormatTest
- Tests plural index computation functionality.
Code
function testGetPluralFormat() {
$this->drupalGet('locale_test_plural_format_page');
$tests = _locale_test_plural_format_tests();
$result = array();
foreach ($tests as $test) {
$this->assertPluralFormat($test['count'], $test['language'], $test['expected-result']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.