From 6fe41796d926433bbbd83702b9f4f958ac992bd2 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 21 Jun 2023 15:15:59 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05909=20-=20:white=5Fcheck=5Fmark:=20Fix?= =?UTF-8?q?=20iApplicationExtension=20not=20called=20when=20attachment=20i?= =?UTF-8?q?s=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/php-unit-tests/unitary-tests/core/DBObjectTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); } /**