Changeset 48937 for trunk/tests/phpunit/tests/general/wpError.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/wpError.php
r48858 r48937 61 61 $wp_error = new WP_Error( 'code' ); 62 62 63 $this->assert Same( null,$wp_error->get_error_data( 'code' ) );63 $this->assertNull( $wp_error->get_error_data( 'code' ) ); 64 64 } 65 65 … … 273 273 */ 274 274 public function test_get_error_data_with_empty_code_and_no_errors_should_evaluate_as_null() { 275 $this->assert Same( null,$this->wp_error->get_error_data() );275 $this->assertNull( $this->wp_error->get_error_data() ); 276 276 } 277 277 … … 282 282 $this->wp_error->add( 'code', 'message' ); 283 283 284 $this->assert Same( null,$this->wp_error->get_error_data() );284 $this->assertNull( $this->wp_error->get_error_data() ); 285 285 } 286 286 … … 292 292 $this->wp_error->add( 'code2', 'message2' ); 293 293 294 $this->assert Same( null,$this->wp_error->get_error_data() );294 $this->assertNull( $this->wp_error->get_error_data() ); 295 295 } 296 296 … … 331 331 */ 332 332 public function test_get_error_data_with_code_and_no_errors_should_evaluate_as_null() { 333 $this->assert Same( null,$this->wp_error->get_error_data( 'code' ) );333 $this->assertNull( $this->wp_error->get_error_data( 'code' ) ); 334 334 } 335 335 … … 340 340 $this->wp_error->add( 'code', 'message' ); 341 341 342 $this->assert Same( null,$this->wp_error->get_error_data( 'code' ) );342 $this->assertNull( $this->wp_error->get_error_data( 'code' ) ); 343 343 } 344 344 … … 451 451 $this->wp_error->add( 'code', '' ); 452 452 453 $this->assert Same( null,$this->wp_error->get_error_data( 'code' ) );453 $this->assertNull( $this->wp_error->get_error_data( 'code' ) ); 454 454 } 455 455 … … 469 469 $this->wp_error->add( 'code', 'message' ); 470 470 471 $this->assert Same( null,$this->wp_error->get_error_data( 'code' ) );471 $this->assertNull( $this->wp_error->get_error_data( 'code' ) ); 472 472 } 473 473
Note: See TracChangeset
for help on using the changeset viewer.