Changeset 48937 for trunk/tests/phpunit/tests/meta/registerMeta.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/registerMeta.php
r48502 r48937 46 46 47 47 // The filter should have been added with a priority of 10. 48 $this->assert Equals( 10, $has_filter );48 $this->assertSame( 10, $has_filter ); 49 49 } 50 50 … … 54 54 remove_filter( 'sanitize_post_meta_flight_number', array( $this, '_old_sanitize_meta_cb' ) ); 55 55 56 $this->assert Equals( 10, $has_filter );56 $this->assertSame( 10, $has_filter ); 57 57 } 58 58 … … 65 65 remove_filter( 'sanitize_post_meta_flight_number', array( $this, '_old_sanitize_meta_cb' ) ); 66 66 67 $this->assert Equals(67 $this->assertSame( 68 68 array( 69 69 'auth' => 10, … … 103 103 ); 104 104 105 $this->assert Equals( $expected, $actual );105 $this->assertSame( $expected, $actual ); 106 106 } 107 107 … … 127 127 ); 128 128 129 $this->assert Equals( $expected, $actual );129 $this->assertSame( $expected, $actual ); 130 130 } 131 131 … … 138 138 remove_filter( 'auth_post_meta_flight_number', '__return_true' ); 139 139 140 $this->assert Equals( array(), $actual );140 $this->assertSame( array(), $actual ); 141 141 } 142 142 … … 157 157 remove_filter( 'auth_post_meta_flight_number', '__return_true' ); 158 158 159 $this->assert Equals( 'old_sanitized_key old sanitized', $meta );159 $this->assertSame( 'old_sanitized_key old sanitized', $meta ); 160 160 } 161 161 … … 180 180 ), 181 181 ); 182 $this->assert Equals( $actual, $expected );182 $this->assertSame( $actual, $expected ); 183 183 } 184 184 … … 196 196 unregister_meta_key( 'post', 'new_sanitized_key' ); 197 197 198 $this->assert Equals( 'new_sanitized_key new sanitized', $meta );198 $this->assertSame( 'new_sanitized_key new sanitized', $meta ); 199 199 } 200 200 … … 222 222 unregister_meta_key( 'post', 'registered_key' ); 223 223 224 $this->assert Equals( array(), $wp_meta_keys );224 $this->assertSame( array(), $wp_meta_keys ); 225 225 } 226 226 … … 261 261 unregister_meta_key( 'post', 'registered_key1' ); 262 262 263 $this->assert Equals( 'I\'m just a field, take a good look at me', $meta_keys['registered_key1']['description'] );263 $this->assertSame( 'I\'m just a field, take a good look at me', $meta_keys['registered_key1']['description'] ); 264 264 } 265 265 … … 282 282 unregister_meta_key( 'post', 'flight_number' ); 283 283 284 $this->assert Equals( 'Oceanic 815', $meta['flight_number'][0] );284 $this->assertSame( 'Oceanic 815', $meta['flight_number'][0] ); 285 285 } 286 286 … … 293 293 unregister_meta_key( 'post', 'flight_number' ); 294 294 295 $this->assert Equals( 'Oceanic 815', $meta[0] );295 $this->assertSame( 'Oceanic 815', $meta[0] ); 296 296 } 297 297 … … 304 304 unregister_meta_key( 'post', 'flight_number' ); 305 305 306 $this->assert Equals( 'Oceanic 815', $meta );306 $this->assertSame( 'Oceanic 815', $meta ); 307 307 } 308 308 … … 353 353 $wp_meta_keys = array(); 354 354 355 $this->assert Equals( $expected, $actual );355 $this->assertSame( $expected, $actual ); 356 356 } 357 357 … … 406 406 $wp_meta_keys = array(); 407 407 408 $this->assert Equals( $expected, $actual );408 $this->assertSame( $expected, $actual ); 409 409 } 410 410
Note: See TracChangeset
for help on using the changeset viewer.