diff --git a/tests/phpunit/tests/admin/includesTemplate.php b/tests/phpunit/tests/admin/includesTemplate.php
index ebd019c858..c0bc3b8884 100644
a
|
b
|
class Tests_Admin_includesTemplate extends WP_UnitTestCase { |
33 | 33 | |
34 | 34 | $this->assertEquals( ' selected=\'selected\'', selected( false, false, false ) ); |
35 | 35 | $this->assertEquals( ' checked=\'checked\'', checked( false, false, false ) ); |
36 | | |
37 | | |
38 | 36 | } |
39 | 37 | |
40 | 38 | function test_notequal() { |
… |
… |
class Tests_Admin_includesTemplate extends WP_UnitTestCase { |
48 | 46 | $this->assertEquals( '', checked( 0, false, false ) ); |
49 | 47 | } |
50 | 48 | |
51 | | function test_post_meta() { |
52 | | $post = get_post( $post ); |
53 | | $keys = apply_filters( 'postmeta_form_keys', null, $post ); |
54 | | |
55 | | if ( $keys ) { |
56 | | natcasesort( $keys ); |
57 | | $meta_key_input_id = 'metakeyselect'; |
58 | | } else { |
59 | | $meta_key_input_id = 'metakeyinput'; |
60 | | } |
61 | | |
62 | | $this->assertNotEmpty($keys); |
63 | | |
64 | | } |
65 | | |
66 | 49 | public function test_add_meta_box() { |
67 | 50 | global $wp_meta_boxes; |
68 | 51 | |
… |
… |
class Tests_Admin_includesTemplate extends WP_UnitTestCase { |
124 | 107 | $this->assertFalse( $wp_meta_boxes['comment']['advanced']['default']['testbox1'] ); |
125 | 108 | $this->assertFalse( $wp_meta_boxes['attachment']['advanced']['default']['testbox1'] ); |
126 | 109 | } |
| 110 | |
127 | 111 | } |