test: stub Storage::DoDelete in the event delete tests refs #5975

This commit is contained in:
Jash committed 2026-11-15 12:54:58 +05:30
1 parent a582ad8e93
commit 2b9794b024
4 files changed
+4

No files matched your search

@@ -57,6 +57,7 @@ class Storage {
public static function find_one($params) { return new Storage($params['Id']); }
public function Id() { return 3; }
public function Path() { return '/var/cache/zoneminder/events'; }
public function DoDelete() { return 1; }
public function Scheme($s = null) { return 'Medium'; }
}
@@ -67,6 +67,7 @@ class Storage {
public function Id() { return 3; }
public function Path() { global $root; return $root; }
public function Scheme($s = null) { return 'Deep'; }
public function DoDelete() { return 1; }
}
class Monitor {}
@@ -60,6 +60,7 @@ class Storage {
public function Id() { return $this->id; }
public function Path() { return '/var/cache/zoneminder/events'; }
public function Scheme($s = null) { return 'Medium'; }
public function DoDelete() { return 1; }
}
class Monitor {}
@@ -67,6 +67,7 @@ class Storage {
public function Id() { return 3; }
public function Path() { global $root; return $root; }
public function Scheme($s = null) { return 'Medium'; }
public function DoDelete() { return 1; }
}
class Monitor {}