mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 04:04:03 -05:00
test: update PHP tests whose mocks and source patterns fell behind master refs #6483
This commit is contained in:
1 parent
440173a824
commit
37fba53cbc
7 files changed
+24
-18
No files matched your search
@@ -66,7 +66,7 @@ check('a good save still reports success', $thing2->save(array('Deleted' => true
|
||||
// Monitor::delete() must hand that result back rather than swallow it.
|
||||
$monitor_src = file_get_contents($root.'/web/includes/Monitor.php');
|
||||
check('Monitor::delete returns the result of the save',
|
||||
(bool)preg_match('/return \$this->save\(\[\'Deleted\'=>true\]\);/', $monitor_src));
|
||||
(bool)preg_match('/\$saved = \$this->save\(\[\'Deleted\'=>true\]\);.*return \$saved;/s', $monitor_src));
|
||||
|
||||
// And the console action has to surface it, and not audit a delete that failed.
|
||||
$console_src = file_get_contents($root.'/web/includes/actions/console.php');
|
||||
|
||||
Reference in new issue
Block a user