You are here

function LocalePluralFormatTest::testGetPluralFormat in Drupal 7

Tests locale_get_plural() functionality.

File

modules/locale/locale.test, line 778
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']);
  }
}