• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Admin_includesListTable::test_empty_trash_button_should_not_be_shown_if_there_are_no_posts() –

You appear to be a bot. Output may be restricted

Description

Usage

Tests_Admin_includesListTable::test_empty_trash_button_should_not_be_shown_if_there_are_no_posts();

Parameters

Returns

void

Source

File name: wordpress-develop-tests/phpunit/tests/admin/includesListTable.php


Lines:

1 to 11 of 11
  public function test_empty_trash_button_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->assertNotContains( 'id="delete_all"', $output );
  }
 

 View on GitHub

Published: 26th November 2019 | Last updated: 27th November 2019

Primary Sidebar

Information

Function name: Tests_Admin_includesListTable::test_empty_trash_button_should_not_be_shown_if_there_are_no_posts
Class ref: Tests_Admin_includesListTable
Plugin ref: WordPress develop tests
Version: 5.3
Sourcefile: phpunit/tests/admin/includesListTable.php
File ref: phpunit/tests/admin/includesListTable.php
Deprecated?: No
API Letters: A,E,I,T

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites