You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_wpCommentsListTable::test_filter_comment_type_dropdown_should_be_shown_if_there_are_comments();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpCommentsListTable.php
Lines:
1 to 19 of 19
public function test_filter_comment_type_dropdown_should_be_shown_if_there_are_comments() { $post_id = self::factory()->post->create(); $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => $post_id, 'comment_approved' => '1', ) ); $this->table->prepare_items(); ob_start(); $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); $this->assertStringContainsString( 'id="filter-by-comment-type"', $output ); $this->assertStringContainsString( "<option value='comment'>", $output ); }