test: stub dbFetchOne in the frames query permission test refs #5594

This commit is contained in:
Jash committed 2026-11-12 06:02:26 +05:30
1 parent ace70a4fb1
commit 2a52cdf16a
1 file changed
+4
@@ -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;