- Timestamp:
- 10/27/2022 03:53:08 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests/comment
- Files:
-
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentAuthorUrl.php
r53863 r54704 4 4 * @group comment 5 5 * 6 * @covers ::get_comment_author_url6 * @covers ::get_comment_author_url 7 7 */ 8 8 class Tests_Comment_GetCommentAuthorUrl extends WP_UnitTestCase { -
trunk/tests/phpunit/tests/comment/getCommentCount.php
r53863 r54704 4 4 * @group comment 5 5 * 6 * Class Tests_Get_Comment_Count7 *8 6 * @covers ::get_comment_count 9 7 */ 10 class Tests_ Get_Comment_Count extends WP_UnitTestCase {8 class Tests_Comment_GetCommentCount extends WP_UnitTestCase { 11 9 12 10 public function test_get_comment_count() { -
trunk/tests/phpunit/tests/comment/getCommentExcerpt.php
r53863 r54704 4 4 * @group comment 5 5 * 6 * Class Tests_Get_Comment_Excerpt7 *8 6 * @covers ::get_comment_excerpt 9 7 */ 10 class Tests_ Get_Comment_Excerpt extends WP_UnitTestCase {8 class Tests_Comment_GetCommentExcerpt extends WP_UnitTestCase { 11 9 protected static $bacon_comment = 'Bacon ipsum dolor amet porchetta capicola sirloin prosciutto brisket shankle jerky. Ham hock filet mignon boudin ground round, prosciutto alcatra spare ribs meatball turducken pork beef ribs ham beef. Bacon pastrami short loin, venison tri-tip ham short ribs doner swine. Tenderloin pig tongue pork jowl doner. Pork loin rump t-bone, beef strip steak flank drumstick tri-tip short loin capicola jowl. Cow filet mignon hamburger doner rump. Short loin jowl drumstick, tongue tail beef ribs pancetta flank brisket landjaeger chuck venison frankfurter turkey. 12 10 -
trunk/tests/phpunit/tests/comment/getLastCommentModified.php
r54703 r54704 7 7 * @covers ::get_lastcommentmodified 8 8 */ 9 class Tests_Comment_ Last_Modified extends WP_UnitTestCase {9 class Tests_Comment_GetLastCommentModified extends WP_UnitTestCase { 10 10 public function test_no_comments() { 11 11 $this->assertFalse( get_lastcommentmodified() ); -
trunk/tests/phpunit/tests/comment/metaCache.php
r53863 r54704 3 3 * @group comment 4 4 */ 5 class Tests_Comment_Meta _Cache extends WP_UnitTestCase {5 class Tests_Comment_MetaCache extends WP_UnitTestCase { 6 6 protected $i = 0; 7 7 protected $queries = 0; -
trunk/tests/phpunit/tests/comment/query.php
r54402 r54704 2081 2081 } 2082 2082 2083 2084 2085 2086 2087 2083 /** 2084 * @ticket 29885 2085 * 2086 * @covers ::get_comments 2087 */ 2088 2088 public function test_fields_author__in() { 2089 2089 $p1 = self::factory()->post->create(); … … 2131 2131 } 2132 2132 2133 2134 2135 2136 2137 2133 /** 2134 * @ticket 29885 2135 * 2136 * @covers ::get_comments 2137 */ 2138 2138 public function test_fields_author__not_in() { 2139 2139 $p1 = self::factory()->post->create(); … … 3329 3329 3330 3330 /** 3331 *3332 3331 * @covers WP_Comment_Query::query 3333 3332 */ -
trunk/tests/phpunit/tests/comment/wpBatchUpdateCommentType.php
r53863 r54704 6 6 * @covers ::_wp_batch_update_comment_type 7 7 */ 8 class Tests_ Batch_Update_Comment_Type extends WP_UnitTestCase {8 class Tests_Comment_wpBatchUpdateCommentType extends WP_UnitTestCase { 9 9 10 10 /** -
trunk/tests/phpunit/tests/comment/wpCheckCommentDisallowedList.php
r54703 r54704 3 3 /** 4 4 * @group comment 5 * 6 * @covers ::wp_check_comment_disallowed_list 5 7 */ 6 class Tests_ WP_Blocklist_Checkextends WP_UnitTestCase {8 class Tests_Comment_wpCheckCommentDisallowedList extends WP_UnitTestCase { 7 9 8 10 public function test_should_return_true_when_content_matches_disallowed_keys() { -
trunk/tests/phpunit/tests/comment/wpComment.php
r53863 r54704 6 6 * @covers WP_Comment::get_instance 7 7 */ 8 class Tests_ Term_WpComment extends WP_UnitTestCase {8 class Tests_Comment_WpComment extends WP_UnitTestCase { 9 9 protected static $comment_id; 10 10 -
trunk/tests/phpunit/tests/comment/wpCountComments.php
r53863 r54704 4 4 * @group comment 5 5 * 6 * Class Tests_WP_Count_Comments7 *8 6 * @covers ::wp_count_comments 9 7 */ 10 class Tests_ WP_Count_Comments extends WP_UnitTestCase {8 class Tests_Comment_wpCountComments extends WP_UnitTestCase { 11 9 12 10 public function test_wp_count_comments() { -
trunk/tests/phpunit/tests/comment/wpUpdateCommentCountNow.php
r53863 r54704 6 6 * @covers ::wp_update_comment_count_now 7 7 */ 8 class Tests_Update_Comment_Count_Now extends WP_UnitTestCase { 9 public function _return_100() { 10 return 100; 11 } 8 class Tests_Comment_wpUpdateCommentCountNow extends WP_UnitTestCase { 12 9 13 10 public function test_invalid_post_bails_early() { … … 51 48 remove_filter( 'pre_wp_update_comment_count_now', array( $this, '_return_100' ) ); 52 49 } 50 51 public function _return_100() { 52 return 100; 53 } 53 54 }
Note: See TracChangeset
for help on using the changeset viewer.