From eff1d5f58e5f372722e5198148656f11eb5c3599 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 7 Jul 2016 10:44:57 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/comment/template.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/phpunit/tests/comment/template.php b/tests/phpunit/tests/comment/template.php index 17ec65e0e3..ce93be265f 100644 --- a/tests/phpunit/tests/comment/template.php +++ b/tests/phpunit/tests/comment/template.php @@ -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(