mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 04:04:03 -05:00
test: stub dbFetchOne in the frames query permission test refs #5594
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user