function LocalePluralFormatTest::testGetPluralFormat
7.x locale.test | LocalePluralFormatTest::testGetPluralFormat() |
Tests locale_get_plural() functionality.
File
- drupal-7.x/
modules/ locale/ locale.test, line 768 - Tests for locale.module.
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']);
}
}