Test phpunit fix

This commit is contained in:
Laurent Destailleur 2022-09-21 17:29:37 +02:00
parent 301e311619
commit 13885f764e

View File

@ -78,7 +78,7 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
* *
* @return void * @return void
*/ */
public static function setUpBeforeClass() public static function setUpBeforeClass(): void
{ {
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite. $db->begin(); // This is to have all actions inside a transaction even if test launched without suite.
@ -91,7 +91,7 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
* *
* @return void * @return void
*/ */
public static function tearDownAfterClass() public static function tearDownAfterClass(): void
{ {
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$db->rollback(); $db->rollback();
@ -104,7 +104,7 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
* *
* @return void * @return void
*/ */
protected function setUp() protected function setUp(): void
{ {
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$conf=$this->savconf; $conf=$this->savconf;
@ -119,7 +119,7 @@ class AdminLibTest extends PHPUnit\Framework\TestCase
* *
* @return void * @return void
*/ */
protected function tearDown() protected function tearDown(): void
{ {
print __METHOD__."\n"; print __METHOD__."\n";
} }