From 270033469fdd6b1fd188d44db37feefe1259785f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 21 Jan 2019 03:50:05 +0100 Subject: [PATCH] Log --- test/phpunit/AccountingAccountTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/phpunit/AccountingAccountTest.php b/test/phpunit/AccountingAccountTest.php index 1997c96009e..09a7a21d145 100644 --- a/test/phpunit/AccountingAccountTest.php +++ b/test/phpunit/AccountingAccountTest.php @@ -144,8 +144,9 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase $localobject->active = 0; $result=$localobject->create($user); - $this->assertLessThan($result, 0); print __METHOD__." result=".$result."\n"; + $this->assertLessThan($result, 0); + return $result; } @@ -169,8 +170,9 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase $localobject=new AccountingAccount($this->savdb); $result=$localobject->fetch($id); - $this->assertLessThan($result, 0); print __METHOD__." id=".$id." result=".$result."\n"; + $this->assertLessThan($result, 0); + return $localobject; } @@ -194,8 +196,9 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase $localobject->label='New label'; $result=$localobject->update($user); - $this->assertLessThan($result, 0); print __METHOD__." id=".$id." result=".$result."\n"; + $this->assertLessThan($result, 0); + return $localobject->id; } @@ -222,6 +225,7 @@ class AccountingAccountTest extends PHPUnit\Framework\TestCase print __METHOD__." id=".$id." result=".$result."\n"; $this->assertLessThan($result, 0); + return $result; } }