diff --git a/test/phpunit/ActionCommTest.php b/test/phpunit/ActionCommTest.php index 092511aa13f..c775ccd02e2 100644 --- a/test/phpunit/ActionCommTest.php +++ b/test/phpunit/ActionCommTest.php @@ -94,46 +94,6 @@ class ActionCommTest extends CommonClassTest print __METHOD__."\n"; } - /** - * tearDownAfterClass - * - * @return void - */ - public static function tearDownAfterClass(): void - { - global $conf,$user,$langs,$db; - $db->rollback(); - - print __METHOD__."\n"; - } - - /** - * Init phpunit tests - * - * @return void - */ - protected function setUp(): void - { - global $conf,$user,$langs,$db; - $conf=$this->savconf; - $user=$this->savuser; - $langs=$this->savlangs; - $db=$this->savdb; - - print __METHOD__."\n"; - //print $db->getVersion()."\n"; - } - - /** - * End phpunit tests - * - * @return void - */ - protected function tearDown(): void - { - print __METHOD__."\n"; - } - /** * testActionCommCreate * diff --git a/test/phpunit/CommonClassTest.class.php b/test/phpunit/CommonClassTest.class.php index 6331a3b2b07..63dad2a8eb6 100644 --- a/test/phpunit/CommonClassTest.class.php +++ b/test/phpunit/CommonClassTest.class.php @@ -18,10 +18,10 @@ */ /** - * \file test/phpunit/ActionCommTest.php + * \file test/phpunit/CommonClassTest.php * \ingroup test * \brief PHPUnit test - * \remarks To run this script as CLI: phpunit filename.php + * \remarks Class that extends all PHPunit tests. To share similare code between each test. */ global $conf,$user,$langs,$db;