Changeset 51331 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r50449 r51331 1714 1714 1715 1715 // Ensure we are dealing with integers, and not objects. 1716 $this->assertI nternalType( 'integer',$comment_1 );1717 $this->assertI nternalType( 'integer',$comment_2 );1718 $this->assertI nternalType( 'integer',$comment_3 );1716 $this->assertIsInt( $comment_1 ); 1717 $this->assertIsInt( $comment_2 ); 1718 $this->assertIsInt( $comment_3 ); 1719 1719 1720 1720 $comment_ids = get_comments( array( 'fields' => 'ids' ) ); … … 3332 3332 $this->assertEmpty( $query1->comments ); 3333 3333 $comments = $query1->query( array( 'status' => 'all' ) ); 3334 $this->assertI nternalType( 'array',$query1->query_vars );3334 $this->assertIsArray( $query1->query_vars ); 3335 3335 $this->assertNotEmpty( $query1->comments ); 3336 $this->assertI nternalType( 'array',$query1->comments );3336 $this->assertIsArray( $query1->comments ); 3337 3337 3338 3338 $query2 = new WP_Comment_Query( array( 'status' => 'all' ) );
Note: See TracChangeset
for help on using the changeset viewer.