mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Refactor tests (#10625)
* Refactor tests Boot Laravel for all tests. Config use private static property for storage instead of global * Backup/restore modules * disable snmpsim log * Fixing DBTestCase * Fix macros loading to the wrong place * trap and other tests should check if db is available * don't include snmp.inc.php if mock.snmp.inc.php is already included... * fix migration * if we don't reset the db, run migrations at least. * set vars for migrate too * Fix style * ignore issues with undefined indexes in legacy code
This commit is contained in:
@@ -66,7 +66,7 @@ require_once $install_dir . '/includes/billing.php';
|
||||
require_once $install_dir . '/includes/syslog.php';
|
||||
if (module_selected('mocksnmp', $init_modules)) {
|
||||
require_once $install_dir . '/tests/mocks/mock.snmp.inc.php';
|
||||
} else {
|
||||
} elseif (!in_array($install_dir . '/tests/mocks/mock.snmp.inc.php', get_included_files())) {
|
||||
require_once $install_dir . '/includes/snmp.inc.php';
|
||||
}
|
||||
require_once $install_dir . '/includes/services.inc.php';
|
||||
|
Reference in New Issue
Block a user