File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ public function test_page_number_when_unapproved_comments_are_included_for_curre
485
485
486
486
remove_filter ( 'wp_get_current_commenter ' , array ( $ this , 'get_current_commenter ' ) );
487
487
488
- $ this ->assertContains ( $ new_unapproved , wp_list_pluck ( $ comments , 'comment_ID ' ) );
488
+ $ this ->assertContains ( ( string ) $ new_unapproved , wp_list_pluck ( $ comments , 'comment_ID ' ) );
489
489
}
490
490
491
491
public function get_current_commenter () {
@@ -542,7 +542,7 @@ public function test_page_number_when_unapproved_comments_are_included_for_curre
542
542
)
543
543
);
544
544
545
- $ this ->assertContains ( $ new_unapproved , wp_list_pluck ( $ comments , 'comment_ID ' ) );
545
+ $ this ->assertContains ( ( string ) $ new_unapproved , wp_list_pluck ( $ comments , 'comment_ID ' ) );
546
546
547
547
wp_set_current_user ( $ current_user );
548
548
}
Original file line number Diff line number Diff line change @@ -891,8 +891,8 @@ public function test_set_value_multiple_custom_schema() {
891
891
$ meta = get_post_meta ( self ::$ post_id , 'test_custom_schema_multi ' , false );
892
892
$ this ->assertNotEmpty ( $ meta );
893
893
$ this ->assertCount ( 2 , $ meta );
894
- $ this ->assertContains ( 2 , $ meta );
895
- $ this ->assertContains ( 8 , $ meta );
894
+ $ this ->assertContains ( ' 2 ' , $ meta );
895
+ $ this ->assertContains ( ' 8 ' , $ meta );
896
896
}
897
897
898
898
/**
Original file line number Diff line number Diff line change @@ -838,8 +838,8 @@ public function test_set_value_multiple_custom_schema() {
838
838
$ meta = get_term_meta ( self ::$ category_id , 'test_custom_schema_multi ' , false );
839
839
$ this ->assertNotEmpty ( $ meta );
840
840
$ this ->assertCount ( 2 , $ meta );
841
- $ this ->assertContains ( 2 , $ meta );
842
- $ this ->assertContains ( 8 , $ meta );
841
+ $ this ->assertContains ( ' 2 ' , $ meta );
842
+ $ this ->assertContains ( ' 8 ' , $ meta );
843
843
}
844
844
845
845
/**
You can’t perform that action at this time.
0 commit comments