Testing cleanup (#11677)

All tests use transactions
One test isn't a db test...
This commit is contained in:
Tony Murray
2020-05-24 13:49:01 -05:00
committed by GitHub
parent 06c991ef57
commit ee13299a77
4 changed files with 22 additions and 32 deletions

View File

@@ -26,6 +26,7 @@
namespace LibreNMS\Tests;
use DeviceCache;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use LibreNMS\Config;
use LibreNMS\Exceptions\FileNotFoundException;
use LibreNMS\Exceptions\InvalidModuleException;
@@ -34,6 +35,8 @@ use LibreNMS\Util\ModuleTestHelper;
class OSModulesTest extends DBTestCase
{
use DatabaseTransactions;
private $discoveryModules;
private $pollerModules;