diff --git a/tests/php/test_frames_query_requires_view.php b/tests/php/test_frames_query_requires_view.php index d10b2ea5db..329251ae01 100644 --- a/tests/php/test_frames_query_requires_view.php +++ b/tests/php/test_frames_query_requires_view.php @@ -73,6 +73,10 @@ namespace { array('FrameId' => 2, 'EventId' => 2, 'Type' => 'Alarm', 'TimeStamp' => '2026-11-01 03:14:02', 'Delta' => 2, 'Score' => 75), ); } + function dbFetchOne($sql, $col = false, $params = array()) { + $GLOBALS['queries'][] = trim($sql); + return 2; + } function ajaxResponse($data = array()) { throw new StopRequest('response'); } function ajaxError($message, $code = 200) { $GLOBALS['last_error'] = $message;