mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 04:04:03 -05:00
test: stub Storage::DoDelete in the event delete tests refs #5975
This commit is contained in:
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 {}
|
||||
|
||||
Reference in new issue
Block a user