Changeset 52654 for trunk/tests/phpunit/tests/includes/factory.php
- Timestamp:
- 01/30/2022 07:40:57 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/includes/factory.php (modified) (1 diff)
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
Note: See TracChangeset
for help on using the changeset viewer.