diff --git a/tests/phpunit/tests/comment/getPageOfComment.php b/tests/phpunit/tests/comment/getPageOfComment.php index 7a0bd729b382..102e98aaa9b8 100644 --- a/tests/phpunit/tests/comment/getPageOfComment.php +++ b/tests/phpunit/tests/comment/getPageOfComment.php @@ -485,7 +485,7 @@ public function test_page_number_when_unapproved_comments_are_included_for_curre remove_filter( 'wp_get_current_commenter', array( $this, 'get_current_commenter' ) ); - $this->assertContains( $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) ); + $this->assertContains( (string) $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) ); } /** @@ -534,7 +534,7 @@ public function test_page_number_when_unapproved_comments_are_included_for_curre ) ); - $this->assertContains( $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) ); + $this->assertContains( (string) $new_unapproved, wp_list_pluck( $comments, 'comment_ID' ) ); wp_set_current_user( $current_user ); } diff --git a/tests/phpunit/tests/rest-api/rest-post-meta-fields.php b/tests/phpunit/tests/rest-api/rest-post-meta-fields.php index ab5f50e3e363..5e3122ea73c3 100644 --- a/tests/phpunit/tests/rest-api/rest-post-meta-fields.php +++ b/tests/phpunit/tests/rest-api/rest-post-meta-fields.php @@ -891,8 +891,8 @@ public function test_set_value_multiple_custom_schema() { $meta = get_post_meta( self::$post_id, 'test_custom_schema_multi', false ); $this->assertNotEmpty( $meta ); $this->assertCount( 2, $meta ); - $this->assertContains( 2, $meta ); - $this->assertContains( 8, $meta ); + $this->assertContains( '2', $meta ); + $this->assertContains( '8', $meta ); } /** diff --git a/tests/phpunit/tests/rest-api/rest-term-meta-fields.php b/tests/phpunit/tests/rest-api/rest-term-meta-fields.php index c9cb763b5838..e3a94552ab04 100644 --- a/tests/phpunit/tests/rest-api/rest-term-meta-fields.php +++ b/tests/phpunit/tests/rest-api/rest-term-meta-fields.php @@ -838,8 +838,8 @@ public function test_set_value_multiple_custom_schema() { $meta = get_term_meta( self::$category_id, 'test_custom_schema_multi', false ); $this->assertNotEmpty( $meta ); $this->assertCount( 2, $meta ); - $this->assertContains( 2, $meta ); - $this->assertContains( 8, $meta ); + $this->assertContains( '2', $meta ); + $this->assertContains( '8', $meta ); } /**