File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ public function test_suggest(): void {
3232 $ post ->ID = 42 ;
3333
3434 Functions \expect ( 'filter_has_var ' )->times ( 3 )->andReturnTrue ();
35- Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_GET , MslsFields::FIELD_BLOG_ID , FILTER_SANITIZE_NUMBER_INT )->andReturn ( 17 );
36- Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_GET , MslsFields::FIELD_POST_TYPE , FILTER_SANITIZE_FULL_SPECIAL_CHARS )->andReturn ( 17 );
37- Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_GET , MslsFields::FIELD_S , FILTER_SANITIZE_FULL_SPECIAL_CHARS )->andReturn ( 17 );
35+ Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_POST , MslsFields::FIELD_BLOG_ID , FILTER_SANITIZE_NUMBER_INT )->andReturn ( 17 );
36+ Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_POST , MslsFields::FIELD_POST_TYPE , FILTER_SANITIZE_FULL_SPECIAL_CHARS )->andReturn ( 17 );
37+ Functions \expect ( 'filter_input ' )->once ()->with ( INPUT_POST , MslsFields::FIELD_S , FILTER_SANITIZE_FULL_SPECIAL_CHARS )->andReturn ( 17 );
3838 Functions \expect ( 'get_post_stati ' )->once ()->andReturn ( array ( 'pending ' , 'draft ' , 'future ' ) );
3939 Functions \expect ( 'get_the_title ' )->once ()->andReturn ( 'Test ' );
4040 Functions \expect ( 'sanitize_text_field ' )->times ( 2 )->andReturnFirstArg ();
You can’t perform that action at this time.
0 commit comments