File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ public function test_ajax_response_get_query_data_valid_query() {
44
44
45
45
$ _POST ['params ' ] = array (
46
46
'query ' => 'SELECT * FROM wp_posts ' ,
47
+ 'chart_id ' => 1 ,
47
48
);
48
49
try {
49
50
// Trigger the AJAX action
@@ -69,6 +70,7 @@ public function test_ajax_response_get_query_data_invalid_query() {
69
70
70
71
$ _POST ['params ' ] = array (
71
72
'query ' => "/**/UPDATE wp_options SET option_value='administrator' WHERE option_name='default_role' -- " ,
73
+ 'chart_id ' => 1 ,
72
74
);
73
75
try {
74
76
// Trigger the AJAX action
@@ -95,6 +97,7 @@ public function test_ajax_response_get_query_data_subcriber_dissallow() {
95
97
96
98
$ _POST ['params ' ] = array (
97
99
'query ' => "/**/UPDATE wp_options SET option_value='administrator' WHERE option_name='default_role' -- " ,
100
+ 'chart_id ' => 1 ,
98
101
);
99
102
try {
100
103
// Trigger the AJAX action
You can’t perform that action at this time.
0 commit comments