File tree 1 file changed +3
-3
lines changed
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 {
32
32
$ post ->ID = 42 ;
33
33
34
34
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 );
38
38
Functions \expect ( 'get_post_stati ' )->once ()->andReturn ( array ( 'pending ' , 'draft ' , 'future ' ) );
39
39
Functions \expect ( 'get_the_title ' )->once ()->andReturn ( 'Test ' );
40
40
Functions \expect ( 'sanitize_text_field ' )->times ( 2 )->andReturnFirstArg ();
You can’t perform that action at this time.
0 commit comments