N°4756 - Fix unit tests

This commit is contained in:
Eric Espie
2022-09-19 16:26:02 +02:00
parent 88f0013330
commit 6c4caf64c8
2 changed files with 4 additions and 4 deletions

View File

@@ -254,7 +254,7 @@ class DBObjectTest extends ItopDataTestCase
static::assertDBQueryCount(0, function() use (&$oObject){
$oObject = \MetaModel::NewObject('Person', ['name' => 'Foo', 'first_name' => 'John', 'org_id' => 3, 'location_id' => 2]);
});
static::assertDBQueryCount(26, function() use (&$oObject) {
static::assertDBQueryCount(18, function() use (&$oObject) {
$oObject->DBInsertNoReload();
});
$sClass = get_class($oObject);
@@ -304,7 +304,7 @@ class DBObjectTest extends ItopDataTestCase
static::assertDBQueryCount(0, function() use (&$oPerson){
$oPerson = MetaModel::NewObject('Person', ['name' => 'Foo', 'first_name' => 'John', 'org_id' => 3, 'location_id' => 2]);
});
static::assertDBQueryCount(26, function() use (&$oPerson) {
static::assertDBQueryCount(18, function() use (&$oPerson) {
$oPerson->DBInsertNoReload();
});
$sPersonClass = get_class($oPerson);