From 12748640a5b6ada341a47521c13351d3fabb9280 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 22 Jun 2021 18:04:06 +0200 Subject: [PATCH] Add log --- htdocs/core/class/commonobject.class.php | 1 + test/phpunit/KnowledgeRecordTest.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 6804a0ec13b..502d14be39c 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8542,6 +8542,7 @@ abstract class CommonObject // Retrieve all extrafield // fetch optionals attributes and labels $this->fetch_optionals(); + dol_syslog("aaa=".$this->id); return $this->id; } else { diff --git a/test/phpunit/KnowledgeRecordTest.php b/test/phpunit/KnowledgeRecordTest.php index ba0d24c854a..0122d8a8e6b 100644 --- a/test/phpunit/KnowledgeRecordTest.php +++ b/test/phpunit/KnowledgeRecordTest.php @@ -184,8 +184,9 @@ class KnowledgeRecordTest extends \PHPUnit\Framework\TestCase $db = $this->savdb; $localobject = new KnowledgeRecord($this->savdb); + print __METHOD__." id=".$id."\n"; $result = $localobject->fetch($id); - print __METHOD__." id=".$id." result=".$result."\n"; + print __METHOD__." result=".$result."\n"; $this->assertGreaterThanOrEqual(0, $result, 'fetch in testKnowledgeRecordDelete with id='.$id); $result = $localobject->delete($user);