Make WordPress Core

Ticket #33885: 33885.5.4.diff

File 33885.5.4.diff, 772 bytes (added by lbenicio, 7 years ago)

unit test 33885.5 correct file(previous one was incorrect)

  • tests/phpunit/tests/admin/includesTemplate.php

    diff --git a/tests/phpunit/tests/admin/includesTemplate.php b/tests/phpunit/tests/admin/includesTemplate.php
    index 8e7e8120b9..c0bc3b8884 100644
    a b class Tests_Admin_includesTemplate extends WP_UnitTestCase { 
    4646                $this->assertEquals( '', checked( 0, false, false ) );
    4747        }
    4848
    49         function test_post_meta() {
    50                 $post = get_post( $post );
    51                 $keys = apply_filters( 'postmeta_form_keys', null, $post );
    52 
    53                 if ( $keys ) {
    54                         natcasesort( $keys );
    55                         $meta_key_input_id = 'metakeyselect';
    56                 } else {
    57                         $meta_key_input_id = 'metakeyinput';
    58                 }
    59 
    60                 $this->assertNotEmpty($keys);
    61 
    62         }
    63 
    6449        public function test_add_meta_box() {
    6550                global $wp_meta_boxes;