You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_wpPostsListTable::test_category_dropdown_should_not_be_shown_if_there_are_no_posts();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/wpPostsListTable.php
Lines:
1 to 11 of 11
function test_category_dropdown_should_not_be_shown_if_there_are_no_posts() { // Set post type to a non-existent one. $this->table->screen->post_type = 'foo'; ob_start(); $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); $this->assertStringNotContainsString( 'id="cat"', $output ); }