Unit Tests: Add description for `data_get_comments_number_text_declension()`.

See #13651.

git-svn-id: https://develop.svn.wordpress.org/trunk@37997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-07-07 10:44:57 +00:00
parent 01bcc4d40b
commit eff1d5f58e
1 changed files with 11 additions and 0 deletions

View File

@ -78,6 +78,17 @@ class Tests_Comment_Template extends WP_UnitTestCase {
return $translation;
}
/**
* Data provider for test_get_comments_number_text_declension_with_custom_args().
*
* @return array {
* @type array {
* @type int $comments_number The number of comments passed to get_comments_number_text().
* @type string $input Custom text for comments number, e.g. '%s Comments'.
* @type string $output The expected output with the correct plural form of '%s Comments'.
* }
* }
*/
function data_get_comments_number_text_declension() {
return array(
array(