Changeset 51337
- Timestamp:
- 07/06/2021 12:31:19 PM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r50284 r51337 552 552 */ 553 553 function _confirm_nav_menu_item_args_object( $args ) { 554 $this->assert True( is_object( $args ));554 $this->assertIsObject( $args ); 555 555 return $args; 556 556 } 557 557 558 558 function _confirm_second_param_args_object( $ignored_1, $args ) { 559 $this->assert True( is_object( $args ));559 $this->assertIsObject( $args ); 560 560 return $ignored_1; 561 561 } 562 562 563 563 function _confirm_third_param_args_object( $ignored_1, $ignored_2, $args ) { 564 $this->assert True( is_object( $args ));564 $this->assertIsObject( $args ); 565 565 return $ignored_1; 566 566 } 567 567 568 568 function _confirm_forth_param_args_object( $ignored_1, $ignored_2, $ignored_3, $args ) { 569 $this->assert True( is_object( $args ));569 $this->assertIsObject( $args ); 570 570 return $ignored_1; 571 571 } -
trunk/tests/phpunit/tests/taxonomy.php
r51335 r51337 28 28 $tax = get_taxonomy( $taxonomy ); 29 29 // Should return an object with the correct taxonomy object type. 30 $this->assert True( is_object( $tax ));30 $this->assertIsObject( $tax ); 31 31 $this->assertIsArray( $tax->object_type ); 32 32 $this->assertSame( array( 'post' ), $tax->object_type ); … … 110 110 $tax = get_taxonomy( $taxonomy ); 111 111 // Should return an object with the correct taxonomy object type. 112 $this->assert True( is_object( $tax ));112 $this->assertIsObject( $tax ); 113 113 $this->assertIsArray( $tax->object_type ); 114 114 $this->assertSame( array( 'link' ), $tax->object_type );
Note: See TracChangeset
for help on using the changeset viewer.