Changeset 52654
- Timestamp:
- 01/30/2022 07:40:57 PM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/includes/factory.php
r52010 r52654 9 9 public function test_create_creates_a_category() { 10 10 $id = $this->category_factory->create(); 11 $this->assert True( (bool)get_term_by( 'id', $id, 'category' ) );11 $this->assertInstanceOf( 'WP_Term', get_term_by( 'id', $id, 'category' ) ); 12 12 } 13 13 14 14 public function test_get_object_by_id_gets_an_object() { 15 15 $id = $this->category_factory->create(); 16 $this->assert True( (bool)$this->category_factory->get_object_by_id( $id ) );16 $this->assertInstanceOf( 'WP_Term', $this->category_factory->get_object_by_id( $id ) ); 17 17 } 18 18 -
trunk/tests/phpunit/tests/term.php
r52389 r52654 124 124 125 125 foreach ( $posts as $post_id ) { 126 $this->assert True( (bool)wp_delete_post( $post_id ) );126 $this->assertInstanceOf( 'WP_Post', wp_delete_post( $post_id ) ); 127 127 } 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.