mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
N°4756 - Fix unit tests
This commit is contained in:
@@ -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(28, function() use (&$oObject) {
|
||||
static::assertDBQueryCount(26, 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(28, function() use (&$oPerson) {
|
||||
static::assertDBQueryCount(26, function() use (&$oPerson) {
|
||||
$oPerson->DBInsertNoReload();
|
||||
});
|
||||
$sPersonClass = get_class($oPerson);
|
||||
@@ -326,7 +326,7 @@ class DBObjectTest extends ItopDataTestCase
|
||||
// $fItopStarted = microtime(true);
|
||||
// ExecutionKPI::EnableDuration(2);
|
||||
// $oKPI = new ExecutionKPI();
|
||||
static::assertDBQueryCount(92, function() use (&$oTeam) {
|
||||
static::assertDBQueryCount(89, function() use (&$oTeam) {
|
||||
$oTeam->DBInsertNoReload();
|
||||
});
|
||||
// $oKPI->ComputeAndReport('Team DBInsertNoReload');
|
||||
|
||||
Reference in New Issue
Block a user