diff --git a/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php b/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php index 522b12ffb..b19ec8acb 100644 --- a/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php +++ b/tests/php-unit-tests/unitary-tests/core/DBObjectTest.php @@ -116,13 +116,13 @@ class DBObjectTest extends ItopDataTestCase $oOrg->DBUpdate(); $this->assertCount(0, $oOrg->ListChanges()); - $this->assertCount(0, $oOrg->ListPreviousValuesForUpdatedAttributes()); + $this->assertCount(1, $oOrg->ListPreviousValuesForUpdatedAttributes()); $oOrg->Set('name', $oOrg->Get('name')); $this->assertCount(0, $oOrg->ListChanges()); $oOrg->DBUpdate(); $this->assertCount(0, $oOrg->ListChanges()); - $this->assertCount(0, $oOrg->ListPreviousValuesForUpdatedAttributes()); + $this->assertCount(1, $oOrg->ListPreviousValuesForUpdatedAttributes()); $oOrg->DBDelete(); @@ -132,7 +132,7 @@ class DBObjectTest extends ItopDataTestCase $oOrg->Set('code', strtoupper('testListPreviousValuesForUpdatedAttributes')); $oOrg->DBUpdate(); $oOrg->DBUpdate(); - $this->assertCount(0, $oOrg->ListPreviousValuesForUpdatedAttributes()); + $this->assertCount(1, $oOrg->ListPreviousValuesForUpdatedAttributes()); } /**